Commit Graph

12 Commits

Author SHA1 Message Date
Stéphane Bidoul (ACSONE)
ab4cc4d461 [IMP] contract: display invoicing offset 2023-03-15 12:38:33 +01:00
Pedro M. Baeza
a9ed053585 [FIX] contract: Don't execute onchange after invoice creation + Tests with duplicated name
- Don't execute onchange after invoice creation
  Using that approach (that is the current one in core)  has a lot of side effects and
  performance bottlenecks. You can read odoo/odoo#40156 for summarizing them.
  This also improves the handling of the values of payment term an fiscal position
  for using the partner ones if not set.
- Tests with duplicated name
  So they are not executed at all. Detected by chance looking for a test for the other PR.
2023-03-15 12:38:21 +01:00
sbejaoui
0964de5f8f [FIX] contract: Fix performance issue on contract line read + Fix contract partner label + contract company must be the same as the sale order
- multi-company record rules on contract line causes performance issue
- the label Partner (always False) don't make any sens
- When creating a contract from a sale order the company must be the sale order
  company and not the user company
2023-03-15 12:37:51 +01:00
hparfr
a76940b527 Add commercial_partner_id fields into contract module
Remove string attribute
2023-03-15 12:37:40 +01:00
Pedro M. Baeza
46830e1a51 [FIX+IMP+MIG] contract: Several refinements:
* Remove incorrect oldname attributes.
* Add filter on partners for running contracts (+ a support o2m field for that).
* Cover more tables in model renaming + cleaner code using a loop.
* Don't copy contract lines, but rename table + copy contract records on pre.
* Contract code is now populated to "Reference/Description" field in invoice.
* Order on new contract model has been restored to the same as old analytic accounts.
2023-03-15 12:37:40 +01:00
Jordi Ballester Alomar
6b4286aead [FIX] Errors in navigation to customer invoices / vendor bills 2023-03-15 12:37:28 +01:00
OCA Transbot
f709b89be8 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-12.0/contract-12.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-contract/
2023-03-15 12:37:28 +01:00
OCA Transbot
94ec4e2dd8 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2023-03-15 12:37:28 +01:00
oca-travis
152e83d1aa [UPD] Update contract.pot 2023-03-15 10:54:36 +01:00
OCA Transbot
ad2a957ad6 OCA Transbot updated translations from Transifex 2023-03-15 10:43:56 +01:00
OCA Transbot
a232e13de3 OCA Transbot updated translations from Transifex 2023-03-15 10:43:56 +01:00
OCA Transbot
1ae93d5ceb OCA Transbot updated translations from Transifex 2023-03-15 10:43:56 +01:00