odoo/addons/purchase
Olivier Dony cd3f52ba10 [FIX] account,*: preserve deactivated taxes
By default, when reading a m2m field, entries that are
deactivated in the destination table are not included.
This behavior is desirable in some cases (e.g. for
"tags" or "categories", but not for entries that
significantly impact other field values in the parent
record, such as taxes.

The problem is rather obvious: when displaying a
paid invoice that used taxes that are now deactivated,
the taxes are hidden while they still affect the
computed amount. And after cancelling + resetting
to draft, the tax is not taken into account anymore,
while still being linked.

Forcing the field-level (python) domain to include
both active and inactive entries solves the problem:
 - when reading, displaying and recomputing values,
   deactivated taxes will be included.
 - when trying to pick a tax, deactivated entries
   will still be ignored, as expected.

This commit applies the technique to all m2m
fields that refer to taxes.

Fixes #12066
opw-677751
2016-05-30 09:07:31 +02:00
..
doc
edi [FIX] purchase: timezone aware dates in PO emails 2015-08-27 14:34:58 +02:00
i18n [I18N] Update translation terms from Transifex 2016-05-29 02:58:42 +02:00
report [FIX] purchase: report currency conversion 2016-03-14 12:42:33 +01:00
security [REF] product refactoring: prices.history model renamed into product.price.history + passed 'date' as real parameter instead of contextual one in get_history_price() because it makes more sense. 2014-04-28 17:33:55 +02:00
static/description [FIX] Use local copies of png instead of fetching them from websites 2015-01-23 11:23:04 +01:00
test [IMP] minor perf improvement during tests 2015-06-26 14:22:29 +02:00
tests [FIX] account, purchase, sale: included taxes 2015-08-26 09:02:39 +02:00
views [FIX] purchase: wrong currency printed on purchase order 2015-03-03 16:54:53 +01:00
wizard [REF] purchase: Move make_invoice_by_partner method out of makeInvoices method 2015-07-31 12:47:35 +02:00
README.md [IMP] Maifest for Github README.md on main apps 2014-08-12 11:33:15 +02:00
__init__.py
__openerp__.py [DEL] Cleaning: key 'images' removed from all __openerp__.py 2015-01-06 14:20:38 +01:00
company.py
company_view.xml
partner.py [FIX] purchase: only search in requested model 2016-01-27 13:13:03 +01:00
partner_view.xml [FIX] purchase: Purchase invoices stat button group on partner form 2015-08-06 10:05:01 +02:00
purchase.py [FIX] account,*: preserve deactivated taxes 2016-05-30 09:07:31 +02:00
purchase_data.xml [REF] purchase: cleaning the TODO messages 2014-04-25 11:11:28 +02:00
purchase_data.yml [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
purchase_demo.xml [FIX] purchase: fixed warning 'no field schedule_range exists in res.company' because it has been removed few commits ago 2014-04-03 10:24:23 +02:00
purchase_order_demo.yml
purchase_report.xml [IMP] Purchase quotation and purchase order converted to QWeb 2014-02-14 15:46:27 +01:00
purchase_sequence.xml
purchase_stock_demo.yml
purchase_view.xml [MERGE] forward port of branch 7.0 up to 35077af 2015-04-01 19:07:59 +02:00
purchase_workflow.xml [FIX] purchase: add transition invoice_end to cancel in the workflow 2015-06-09 08:20:10 +02:00
res_config.py [MERGE] stock_account, purchase: better usability in settings to install stock_account and manage options to use costing methods and invenotyr valuation 2014-04-15 13:29:15 +02:00
res_config_view.xml Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
stock.py [FIX] purchase: _create_invoice_line_from_vals 2015-09-11 15:41:33 +02:00
stock_view.xml [FIX] purchase: Invoicing on incoming shipments 2015-07-09 14:10:13 +02:00

README.md

Odoo Supply Chain

Automate requisition-to-pay, control invoicing with the Odoo Open Source Supply Chain.

Automate procurement propositions, launch request for quotations, track purchase orders, manage suppliers' information, control products reception and check suppliers' invoices.

Automated Procurement Propositions

Reduce inventory level with procurement rules. Get the right purchase proposition at the right time to reduce your inventory level. Improve your purchase and inventory performance with procurement rules depending on stock levels, logistic rules, sales orders, forecasted manufacturing orders, etc.

Send requests for quotations or purchase orders to your supplier in one click. Get access to product receptions and invoices from your purchase order.

Purchase Tenders

Launch purchase tenders, integrate supplier's answers in the process and compare propositions. Choose the best offer and send purchase orders easily. Use reporting to analyse the quality of your suppliers afterwards.

Email integrations

Integrate all supplier's communications on the purchase orders (or RfQs) to get a strong traceability on the negotiation or after sales service issues. Use the claim management module to track issues related to suppliers.

Standard Price, Average Price, FIFO

Use the costing method that reflects your business: standard price, average price, fifo or lifo. Get your accounting entries and the right inventory valuation in real-time; Odoo manages everything for you, transparently.

Import Supplier Pricelists

Take smart purchase decisions using the best prices. Easily import supplier's pricelists to make smarter purchase decisions based on promotions, prices depending on quantities and special contract conditions. You can even base your sales price depending on your supplier's prices.

Control Products and Invoices

No product or order is left behind, the inventory control allows you to manage back orders, refunds, product reception and quality control. Choose the right control method according to your need.

Control supplier invoices with no effort. Choose the right method according to your need: pre-generate draft invoices based on purchase orders, on products receptions, create invoices manually and import lines from purchase orders, etc.