-
- Downloads
[FIX] sale: use default_get to define the invoice journal
When creating the invoice of a sales order, from the sales order (`Create invoice` button on the sale order), the journal used for the invoice was forced with a specific domain. Besides, the only reason the journal is forced is to check there is a sale journal for the quotation company, and raise a warning if not. This check was added in 1578c285. This prevented to use the user defined defaults, (`Set defaults` in the `debug` menu) to set a different default journal per user. Using the `default_get` instead solves this issue, as it uses first the user defined defaults. Besides, if no user defined defaults are set, it then uses the default value set in the field definition, which in this case returns the same journal then the forced domain mentioned above, the domain used being the same. There is therefore no change of behavior, while giving the possibility to use the user defined defaults. Fixes #8786
Please register or sign in to comment