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
Cédric Krier
5020fc60e7
Create screen with the mode from the action views
...
d800175396c4 changed the parameter name into view_mode instead of mode.
Closes #12332
2023-06-18 17:42:36 +02:00
Cédric Krier
317bdb7019
Do not fail on ValueError when formatting message with gettext
...
If wrong variables are used to call gettext, the formatting may raise a
ValueError. It is better to not fail for such minor error when not testing.
Closes #12371
2023-07-15 00:40:59 +02:00
Cédric Krier
041a3fb9b2
Support PYSON comparison of timedelta
...
Closes #10727
2023-06-15 17:06:13 +02:00
Cédric Krier
3c4be97ed0
Compare moment duration using valueOf
...
Closes #10727
2023-06-15 16:47:43 +02:00
Cédric Krier
a368d4a4b8
Use isMoment function
2023-06-15 17:07:36 +02:00
Cédric Krier
d7aaac6740
Support encoding timedelta into PYSON TimeDelta
...
Closes #10727
2023-06-15 13:57:15 +02:00
Adrià Tarroja Caubet
cb7970a350
Reschedule planned date for late productions
...
Closes #11494
2023-01-18 17:34:20 +01:00
Sergi Almacellas Abellana
cd81e8e793
Use on_change method to set production's planned_start_date
2023-07-06 10:07:31 +02:00
Cédric Krier
09794bbccd
Use history table instance to migrate supply on sale column on history table
...
Closes #12379
2023-07-15 00:36:31 +02:00
Cédric Krier
9096dda5b4
Do not display delegated amount if it is 0
...
This prevents to display the currency when there is no amount delegated.
2023-06-13 12:56:54 +02:00
Cédric Krier
7fb22cc6aa
Do not call screen display when instance button modify a record
...
The method set_modified already take care of calling display to the proper
screens.
2023-07-03 19:49:02 +02:00
Cédric Krier
865f5d4caf
Call load method on record to retrieve binary value for binary widget in list
...
The call to fetch was introduced in 61900bf04dfb but the method does not
exist.
Closes #12392
2023-07-12 15:13:32 +02:00
Cédric Krier
13ded08918
Remove anchor from Wikipedia link to Ledger
...
The anchor does not exist anymore and in general the anchor on Wikipedia
should be avoided because they may change at any time.
2023-07-10 09:21:27 +02:00
Sergi Almacellas Abellana
ad5beb8363
Add employee on cycles for running and done states
2023-05-08 13:38:41 +02:00
Nicolas Évrard
99ded91b41
Clear caches after commit when installing modules
...
A call to clear_all is required after the commit in order to ensure that the
transaction uses an empty cache from this point. clear_all is not required to
prevent the deadlock on ir.cache because the rollback ensures that nothing
changed from the point of view of this transaction.
Close #12343
2023-07-14 18:50:44 +02:00
Cédric Krier
e63ff9b40a
Fill product cost price on outgoing stock move of FIFO product
...
On outgoing move of FIFO product, the cost price is filled with the average
cost of the first products used. But for history we need to keep the cost
price of the product when move was done.
2023-06-16 13:45:45 +02:00
Cédric Krier
6381b5e171
Use product cost price from stock move for cost history
...
When the product cost price is filled, it must be used instead of the cost
price.
2023-06-16 13:43:56 +02:00