Commit Graph
57160 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 1ae7c02f97 Use proper module for message when checking shipment cost for sale quotation
Closes #12458
2023-08-09 23:20:03 +02:00
Adrià Tarroja Caubet 83220a6076 Reuse cumulate per party from context as default value for general ledger line
Closes #12367
2023-07-05 16:32:56 +02:00
Cédric Krier a1118902e0 Skip promotion based on categories if line has no product
Closes #12351
2023-08-02 19:09:51 +02:00
Cédric Krier ad44d043ad Remove empty modules
The directories have been wrongly created by ffef63a3959b
2023-08-06 19:27:32 +02:00
Sergio Hervas dc9edffff4 Add window tab for quotation and received states of purchase requests
Closes #12323
2023-08-07 19:42:18 +02:00
Cédric Krier 36618628dd Set next party after next account only on initial filling of accounts
When the next account method is called from the while loop, the next party is
always called by the upper loop.
If next party is called also in next account then the first party is skipped.

Closes #12327
2023-07-17 23:05:11 +02:00
Cédric Krier 1aa704e18f Update link to signing secret documentation of Stripe
Closes #12442
2023-08-01 09:07:01 +02:00
Nicolas Évrard 6893789faa Rename function with_inactive_records in documentation
The commit e6c72b1f23e7 added the function but the documentation used another
name
2023-06-13 13:39:22 +02:00
Cédric Krier fa29b69761 Replace progressbar by tqdm 2023-07-22 19:36:08 +02:00
Cédric Krier adc26533da Add .readthedocs.yaml configuration [skip ci]
This is required by Read the Docs service:
https://blog.readthedocs.com/migrate-configuration-v2/

Closes #12344
2023-08-06 11:06:08 +02:00
Cédric Krier 8ac07169a3 Cancel cancelling move instead of delete in test scenario
Since efdb98eb55e5 cancel move is posted of the cancelled move is already
posted. So the cancelling move can no more be deleted, instead it must be
cancelled without reversal to have the same effect.
2023-08-06 01:04:24 +02:00
Blaž Bregar c4fb1ee148 Add new identifiers up to python-stdnum 1.18
Closes #12275
2023-08-05 18:29:01 +02:00
Cédric Krier 2c6e156cf4 Add menu to copy selected record from tree view to clipboard
We convert the optional drop-down into a general tree menu with the copy
option.

Closes #12399
2023-07-13 15:41:06 +02:00
Cédric Krier 8e10419d60 Add get_textual_value function to Column 2023-07-13 15:39:31 +02:00
Cédric Krier 8d537cca60 Show expiration date on lot if filled
Even if the product has the expiration date state to 'none', if the date is
filled we should show it to let the user clear it.

Closes #12414
2023-07-23 18:48:01 +02:00
EdbO 873a52f239 Cache the url for authentication service
When starting the desktop client you can select a profile. And by doing
that, the client sends a request to fetch the authentication services.
The data of the request is then cached but the url is not so the client
forget about it. Because of the cached data, when selecting a particular
profile data is taken from the cache but the url is not updated leaving
it unchanged and empty or with a url from last request.

Closes #12440
2023-08-03 16:38:32 +02:00
Cédric Krier 0c36d1ef96 Keep process exception value when recall after session renew
If the original RPC call did not want to process the exception, the recall
should not.

Closes #12411
2023-07-18 18:32:33 +02:00
Cédric Krier 6fa765b291 Compute stock quantity based on shipping date
Since 199376009ebb we have a shipping date on the sale line which should be
used instead of the sale date to check stock quantity.

Closes #12388
2023-07-12 11:27:25 +02:00
Cédric Krier 2be6515fa6 Start remainder with all lines for amount to pay invoice
This is the worst case before finding a better one with a lower remainder.

Closes #12403
2023-07-15 01:05:48 +02:00
Cédric Krier 852741ae54 Set overpayment by default when amount is greater than the amount to pay 2023-07-14 12:02:49 +02:00
Cédric Krier 03e0455e75 Do not allow overpayment of invoice when write-off amount is negative
When paying less than the amount to pay, there is no overpayment.
2023-07-14 12:01:05 +02:00
Cédric Krier c3da634f9f Require lines when paying invoice with write-off or overpayment
This is needed ensure that at least one line to pay of the invoice is
reconciled.
The lines and payment lines are also shown for overpayment.

Closes #12403
2023-07-14 11:59:19 +02:00
Nicolas Évrard 768e44bc8a Return period end date as default date for account move
When period is before today, the default date of the account move must be set
with the period end date.

Closes #12408
2023-08-02 22:05:22 +02:00
Maxime Richez c7cb91e369 Sync secondary unit on supplier and internal shipments
When synchronize the outgoing or incoming move, the secondary unit must be
copied from the template.

Closes #12301
2023-08-02 19:28:47 +02:00
Cédric Krier 6c9f4422d4 Do not catch error in get_textual_value of Reference widget
Closes #12400
2023-07-13 15:47:10 +02:00
Cédric Krier b0c63782bf Use configured minimal connection also for default database name
When the default database name is also a Tryton database, we must keep the
minimal connection in the pool instead of of 0.

Closes #12387
2023-07-12 09:16:08 +02:00
Cédric Krier 84b2c346b5 Remove unnecessary group on menu
Menu with an action window do not anymore to be hidden by group for access
since #12322
2023-06-23 14:51:59 +02:00
Cédric Krier c90d2f2ca4 Filter menu with action window for which user has not read access
Closes #12322
2023-07-23 12:17:02 +02:00
Cédric Krier 427dda4e0d Replace action of menu by a filtered list of action keywords 2023-06-23 15:09:07 +02:00
Cédric Krier 2ac7600b3d Add reference to the type of action in action 2023-06-23 14:03:45 +02:00
Cédric Krier 920d841ffa Extend the action views for all type of actions 2023-06-23 13:55:16 +02:00
Cédric Krier e5b53852a5 Read ids from the table even without columns if a rule domain exists
The rule must be enforced also when only non SQL type fields are read.

Closes #12428
2023-07-23 10:18:04 +02:00
Cédric Krier 7751e8bcc2 Pass the input name as argument to run function of AskDialog
The changeset 36ed62f49cec set the new argument at the wrong position.

Closes #12373
2023-07-24 23:31:37 +02:00
Sergi Almacellas Abellana 58c7f8c517 Inherit marketing campaing opportunity abstract models in right order
Abstract models should be always the last in inheritance because
they are object when optional dependencies are not activated
PoolMeta shold be added because all classes in the pool must inherit from it

Closes #12375
2023-07-05 14:50:34 +02:00
Maxime Richez 5a97280814 Always compute product quantities for sales with children
with_childs is set to True by default only when one location is in the context.
But for the product list in sales, we want to have the quantities with children
also if more than one warehouse is selected.

Closes #12377
2023-07-07 16:20:56 +02:00
Cédric Krier 6acffaf048 Replace on_change_with_planned_start_date of production
Since 74c33f2fe011, the method has been replaced by set_planned_start_date,
the pattern has been remove to stay only on compute_lead_time.

Closes #12423
2023-07-22 18:55:46 +02:00
Cédric Krier 0dbfe051e8 Copy pattern of production lead time before modification
We should not modify the caller mutable structure.
2023-07-22 18:53:50 +02:00
Sergi Almacellas Abellana add6afeaed Avoid duplicated total amount on SII invoices with multiple taxes per line 2023-07-21 11:47:38 +02:00
Sergi Almacellas Abellana 23a95054f8 Group sii taxes detail based on tax rate
Closes #12420
2023-07-21 10:36:43 +02:00
Cédric Krier f2ebadf1da Test company header is not empty before using its id
Closes #12363
2023-07-18 22:58:23 +02:00
Sergi Almacellas Abellana 5b1a9801a0 Include active field in quality control form
Closes #12419
2023-07-20 13:42:44 +02:00
Cédric Krier a538687b8d Show in shortcut help dialog the copy/paste shortcuts for tree view 2023-07-13 15:48:41 +02:00
Cédric Krier acc1b31c05 Use environment variable as default for command line coroutine option 2023-07-11 22:50:52 +02:00
Cédric Krier e3fb65f35a Use environment variable as default for command line logging options 2023-07-11 22:49:25 +02:00
Cédric Krier 7c6137f070 Document active test in ModelStorage 2023-07-05 12:57:15 +02:00
Cédric Krier 69f82e8100 Set default value of active_test from transaction
Instead of testing the context in _search_domain_active, it is simpler to set
the active_test default value using the transaction context.
2023-07-05 12:39:48 +02:00
Cédric Krier f4210f8143 Document active field part of DeactivableMixin 2023-07-05 12:36:46 +02:00
Cédric Krier 9f9620445d Align on bottom amount and state of invoice form 2023-07-15 16:13:28 +02:00
Cédric Krier 36cc241d92 Ensure to always revoke Object URL created for document widget
If object is loaded before the onload function is set, the Object URL is not
revoked. To be sure we revoke the previous Object URL and we set the function
before changing the data attribute.
2023-07-12 17:09:02 +02:00
Cédric Krier ee98731a76 Post delegated move at the end of the action
Other modules may want to alter the delegated move so we must post it once it
is no more accessible to other modules.

Closes #12416
2023-07-19 18:15:18 +02:00