Cédric Krier
b356dc2276
Search for invoice and purchase lines from the same company as the invoice
2023-10-06 15:05:47 +02:00
Cédric Krier
88d91e9b92
Assign id instead of instance when filling invoice from document incoming
...
This ensures that the instances have the right context from the field
definition.
Closes #12619
2023-10-06 15:04:39 +02:00
Cédric Krier
83d817309c
Add scenario to test default taxes for purchase without product
2023-10-04 17:19:01 +02:00
Cédric Krier
bf71a702c9
Compute taxes when purchase is changed on line
...
Closes #12612
2023-10-04 17:18:47 +02:00
Cédric Krier
120c0f745e
Add scenario to test default taxes for sale without product
2023-10-04 17:18:23 +02:00
Cédric Krier
93d8d997df
Compute taxes when sale is changed on line
...
Closes #12612
2023-10-04 17:17:51 +02:00
Cédric Krier
0108d926c5
Ensure to set grid template after the widgets have been displayed
2023-10-02 17:29:19 +02:00
Cédric Krier
d61e939339
Do not use .hidden class to mark cell in grid as hidden
...
In e5446fb8d4ce the .hidden class is added to cells to remove the padding of
empty but Boostrap defines the same class with display none.
So once a cell is marked as hidden, it stays hidden.
2023-10-02 17:28:01 +02:00
Cédric Krier
639ead79a6
Add number and reference fields to ShipmentMixin
2023-10-07 17:17:32 +02:00
Sergi Almacellas Abellana
a22de3c794
Make shipment reference not readonly
...
Closes #11879
2023-05-17 09:04:54 +02:00
Cédric Krier
b19f1b51e1
Add shipping reference in replacement of reference
2023-10-07 17:27:42 +02:00
Maxime Richez
ea052f9930
Set inventory moves readonly for picked customer shipment
...
Closes #12613
2023-10-05 13:33:29 +02:00
Maxime Richez
76921bfccc
Add menu entry to list warehouses
...
Closes #12608
2023-10-09 12:43:39 +02:00
Maxime Richez
0416811b33
Grant read access for account group to stock move
...
Closes #12602
2023-10-02 13:39:00 +02:00
Cédric Krier
1436ea9b51
Add [x|y][expand|fill] attribute to button in form RNG
...
Closes #12617
2023-10-05 16:23:02 +02:00
Cédric Krier
f2fe641927
Add preview of sequence
...
Closes #12609
2023-10-02 18:10:30 +02:00
Cédric Krier
6714a94b28
Autocomplete party from European VAT number
2023-09-30 16:14:33 +02:00
Cédric Krier
4bdad83247
Use vat alias for party identifier
2023-09-26 23:46:13 +02:00
Cédric Krier
ccf653da1d
Support create record from autocomplete with default values
2023-09-26 23:45:07 +02:00
Cédric Krier
96c2cd16f1
Use defaults dictionary for new default values
...
Replace the rec_name argument by a dictionary of default values.
2023-09-26 14:55:34 +02:00
Cédric Krier
d8530fc867
Support default value from context
2023-09-25 17:53:23 +02:00
Cédric Krier
92b3416d79
Add autocomplete method on ModelView
2023-09-25 17:22:40 +02:00
Cédric Krier
293214d231
Use likify in ModelStorage search_global
2023-09-25 16:37:07 +02:00
Cédric Krier
a3877cadb3
Add likify tools
2023-09-25 16:42:04 +02:00
Cédric Krier
66e460b97d
Do not consider purchase as done when invoice or shipment state are none
...
If there are still line to invoice or to receive, the purchase should not be
done.
Closes #12594
2023-09-27 12:30:12 +02:00
Cédric Krier
7f341ec3ed
Do not consider sale as done when invoice or shipment state are none
...
If there are still line to invoice or to ship, the sale should not be done.
Closes #12594
2023-09-27 12:29:36 +02:00
Sergi Almacellas Abellana
b5ae87d422
Post move when posting sale point transfer
...
Closes #12563
2023-10-07 19:55:15 +02:00
Sergi Almacellas Abellana
81c3d0c95c
Set focus on Many2One entry after clearing its value in sao
...
Closes #12550
2023-10-07 19:14:23 +02:00
Cédric Krier
fc5368eb51
Use __file__ attribute of loaded module for egg modules
...
Since pip >= 23, the Distribution location does not point to the development
directory.
Closes #12582
2023-09-27 09:37:07 +02:00
Cédric Krier
655eafe328
Display optional company on lines to pay list
2023-10-02 12:05:42 +02:00
Cédric Krier
1c27be9a3e
Record.get_eval must return only loaded values
...
Sao must behave the same way as tryton does with the changeset 4d2bd7127a51.
Closes #12415
2023-09-24 19:01:07 +02:00
Cédric Krier
a2ba60730b
Set origin on shipment cost invoice line earlier
...
The origin must be set before calling on_change_product such that module like
account_tax_rule_country can fill the tax rule pattern.
Closes #12507
2023-08-29 14:11:32 +02:00
Cédric Krier
b0d1fc6946
Do not get context for rule evaluation as root
...
Since f2d4e71a704e the context must be computed for each rule so the loop must
be outside of the root context used to browse the rules (to avoid infinite
recursion)
2023-10-07 14:49:07 +02:00
Cédric Krier
c03ee084ce
Clear cache when specific types and models are modified
...
The cached values linked to translations are rarely modified but other
translations can be modified very often by users.
2023-09-23 18:22:20 +02:00
Cédric Krier
6019dd7f03
Remove user from contextual key of Cache
...
The user was added by 08e1868e307c because it was part of the arguments of the
cached function before.
But actually cache would have better hit ratio without the user as many users
should share the same context.
2023-09-23 16:02:38 +02:00
Cédric Krier
abefd595dd
Use memory cache for RNG
...
The cache store the etree element so it can only be cached in memory.
2023-09-22 15:50:50 +02:00
Cédric Krier
ee99fbd13c
Clear action keyword cache when translations are changed
...
The cache contains the translated label of the actions.
2023-09-22 15:49:13 +02:00
Cédric Krier
a4b9b500a3
Clear view toolbar cache when translations are changed
2023-09-22 15:48:16 +02:00
Cédric Krier
03ba93f402
Use groups as key for fields_view_get cache
...
This permits to not clear the cache when users or actions are modified.
2023-09-22 15:39:26 +02:00
Cédric Krier
1cb892e7a9
Remove context on RNG cache
...
The content of RNG does not depend on the context.
2023-09-22 15:28:58 +02:00
Cédric Krier
013c746067
Remove context from keyword cache
...
The cached values depend only on the language and the groups of the user.
2023-09-22 15:26:54 +02:00
Cédric Krier
09b9d5b2f0
Remove context from view toolbar cache
...
The cached values depend only on the language and the groups of the user.
2023-09-22 15:22:57 +02:00
Cédric Krier
75cc41763b
Clean unrelated comment in ModelButton delete
2023-09-22 12:58:20 +02:00
Cédric Krier
7e7d855c22
Expand menu column in favorite list
2023-09-21 17:54:29 +02:00
Cédric Krier
85a9575a95
Require a user application
...
There is no empty option so it is in fact required so it is better that the UI
manage it.
2023-09-21 17:53:48 +02:00
Cédric Krier
cea1fcad74
Remove employee and employees from evaluation context of rule domain
...
Closes #12581
2023-09-24 13:56:20 +02:00
Cédric Krier
0c8303994e
Remove user from evaluation context of rule domain
...
Closes #12581
2023-09-24 13:35:39 +02:00
Cédric Krier
d87effab7b
Allow customizing context per model for rule
2023-09-24 13:59:00 +02:00
Cédric Krier
d2908701c6
Use dedicated method to skip user warning
2023-09-24 13:23:53 +02:00
Cédric Krier
01b47f30c8
Remove own view search access rules
...
Instead we use dedicated get/set/unset methods which enforce access rights.
2023-09-21 17:55:29 +02:00