Thursday, August 13, 2020
4 changes · master
Resolved issues and error corrections
This update fixes an issue that could prevent Argentine localization demo data from installing correctly. It explicitly sets the required currency exchange accounts for specific Argentine chart templates, helping demo environments work reliably.
Original PR description
task 355 --- -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This change makes it easier to adjust sale order details at the moment an order is confirmed. Businesses using integrations or custom workflows can now set values such as confirmation dates from external systems before they are saved.
Original PR description
Description of the issue/feature this PR addresses: Allow modifying values before they're written when confirming a sale order. Current behavior before PR: As a `write` is being triggered from within…
Description of the issue/feature this PR addresses: Allow modifying values before they're written when confirming a sale order.
Current behavior before PR: As a `write` is being triggered from within `action_confirm` there is no clean way to modify or add values in the dictionary.
Desired behavior after PR is merged: Since the `action_confirm` calls `_prepare_confirmation_values` we can easily override this function to modify or add values before they're being written. This allows something such as:
```
def _prepare_confirmation_values(self):
values = self.super(SaleOrder, self)._prepare_confirmation_values)
values['another_key'] = 'Yes we can'
return values
```
This can be handy if you, for example, create and confirm sale orders through the API and have another date for `date_order` because the actual confirmation date is not `fields.Datetime.now()` but a date from your external system.
Follow-up of https://github.com/odoo/odoo/pull/54517
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThe inventory report action label is restored from “Update Quantity” to its previous wording to avoid confusing users. This makes the stock workflow easier to understand without changing the underlying inventory behavior.
Original PR description
The current action name `Update Quantity` was confusion for users using the Inventory Report.  With this commit, we restore the action name to the previous one. This commits partially reverts bee938e03d60ec097b6885581bf68b6886418c93 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an incorrect test update carried over from an earlier change in Accounting Reports. It helps keep automated checks accurate so future reporting changes can be validated reliably without affecting day-to-day users.
Original PR description
… of the test from https://github.com/odoo/enterprise/pull/10706/commits/c09d126f8afa5bdb37694e16b8b7501f0db3b05f