diff options
| author | wan <wan@odoo.com> | 2021-04-02 10:33:24 +0000 |
|---|---|---|
| committer | wan <wan@odoo.com> | 2021-04-12 18:19:00 +0000 |
| commit | fcaa54939e9a4f0dd5e47cd0ccffe7aa24bd451c (patch) | |
| tree | 04953cd19b1bcb09648fc88624c3da7e403fc706 /addons/stock_dropshipping | |
| parent | 14abcfa92cd37db82338f9a933221142026a78bd (diff) | |
[FIX] account: never set default for invoice_date
For customer invoices:
* do not set default date because if you prepare an invoice (and it gets
a default date), then validate it the next day, the date will be wrong
* set the date when posting if it wasn't set, because why not?
For vendor bills:
* do not set default date because you rarely encode a bill at the bill
date. Forcing the user to enter it reduces risks of user error
(duplicated vendor bill)
* do not set it when posting, same reason.
opw-2492862
Related #68368
Closes #68367
closes odoo/odoo#68689
Related: odoo/enterprise#17502
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/stock_dropshipping')
| -rw-r--r-- | addons/stock_dropshipping/tests/test_stockvaluation.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/stock_dropshipping/tests/test_stockvaluation.py b/addons/stock_dropshipping/tests/test_stockvaluation.py index f4709c03829..b1ac78d2003 100644 --- a/addons/stock_dropshipping/tests/test_stockvaluation.py +++ b/addons/stock_dropshipping/tests/test_stockvaluation.py @@ -69,6 +69,7 @@ class TestStockValuation(ValuationReconciliationTestCommon): move_form = Form(self.env['account.move'].with_context(default_move_type='in_invoice')) move_form.partner_id = vendor1 move_form.purchase_id = self.purchase_order1 + move_form.invoice_date = move_form.date for i in range(len(self.purchase_order1.order_line)): with move_form.invoice_line_ids.edit(i) as line_form: line_form.tax_ids.clear() |
