Commit Graph

308 Commits

Author SHA1 Message Date
oca-git-bot
e41bfe34a3 [IMP] update dotfiles [ci skip] 2023-03-15 12:38:45 +01:00
Denis Roussel
0e3fbebbeb [FIX+IMP] contract: Several things
- Don't update recurring_next_date as computed
- Compute recurring_next_date for False values too + simplify compute as False values are already taken into account
  In get_next_invoice_date, False values are already taken into account, so, simplifying
  compute_recurring_next_date function.
- Add comment to remind updating method in next version
2023-03-15 12:38:45 +01:00
Ignacio Buioli
84ecec6b69 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (313 of 313 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/es_AR/
2023-03-15 12:38:45 +01:00
Noel estudillo
02123527aa Translated using Weblate (Catalan)
Currently translated at 96.8% (303 of 313 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/ca/
2023-03-15 12:38:45 +01:00
Jean-Charles Drubay
d673af70da ADJ: When generating invoices from the Wizard to create invoices manually, reraise any UserError with information about which contract triggered the exception to facilitate the investigation by accountants in case invoices are not generated automatically. 2023-03-15 12:38:44 +01:00
Víctor Martínez
0bc5082115 [IMP] contract: Add discount + price_subtotal fields to the contract lines in the portal view.
TT34117
2023-03-15 12:38:44 +01:00
Joan Mateu Jordi
804ee2ffc2 [15.0][IMP] modify production beta to stable 2023-03-15 12:38:44 +01:00
manu
fbc37b5db4 [FIX] contract: Avoid error in invoicing contracts crone 2023-03-15 12:38:44 +01:00
Jean-Charles Drubay
2cae7764c8 [MIG] contract: Migration to 15.0
Most changes are related to the switch from jinja to qweb in mail templates.

Also included:
- convert deprecated onchange that returns a domain and other deprecation warnings
  (see below)
- Add migration scripts from version 14.0 (force the update of the mail templates)
- Fix warnings from pre-commit checks

Fixes depreciation warnings:

- onchange method ContractAbstractContractLine._onchange_product_id returned
  a domain, this is deprecated
- SavepointCase is deprecated:
  https://github.com/odoo/odoo/blob/15.0/odoo/tests/common.py#L742
- assertDictContainsSubset: According to:
  https://stackoverflow.com/questions/20050913/python-unittests-assertdictcontainssubset-recommended-alternative
2023-03-15 12:38:44 +01:00
Jean-Charles Drubay
7f620ee1e6 [IMP] contract: black, isort, prettier 2023-03-15 12:38:44 +01:00
Pedro Castro Silva
8ce3152fec Translated using Weblate (Portuguese)
Currently translated at 80.4% (247 of 307 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/pt/
2023-03-15 12:38:44 +01:00
pere-aquarian
507b40e855 Translated using Weblate (Catalan)
Currently translated at 98.3% (302 of 307 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/ca/
2023-03-15 12:38:44 +01:00
João Marques
052b34543d [FIX] contract: Fix invoice creation and salesperson assignment
In v13, the `user_id` field is a related field to `invoice_user_id`, that defaults to the environment user (`self.env.user`).
Therefore, if we try to create an invoice just by passing `user_id`, it would be overwritten by the default computation of `invoice_user_id`.
This fixes it by passing the correct field and data.

TT31715
2023-03-15 12:38:44 +01:00
Alexis de Lattre
150fa46ced [FIX] contract: fix an obvious crash when self is a multi-recordset 2023-03-15 12:38:44 +01:00
Ediz Duman
b4659078b3 Translated using Weblate (Turkish)
Currently translated at 72.9% (224 of 307 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/tr/
2023-03-15 12:38:44 +01:00
Pedro M. Baeza
29165e2854 [FIX] contract: Cleanup values on line when invoicing
It seems that having several fields returned by `Form` as `False` that
are related to one2many inverse field, makes Odoo ORM mad, and get to
an unbalanced move when generating the invoice.

Cleaning these values assures to work without problems.

Not able to provide a regression test, as I don't get to reproduce the
conditions to happen in test environment, but the patch is safe and
harmless anyways.

TT30842
2023-03-15 12:38:44 +01:00
Ignacio Buioli
964f3e5403 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (307 of 307 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/es_AR/
2023-03-15 12:38:44 +01:00
OCA Transbot
98fb160b3a Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/
2023-03-15 12:38:44 +01:00
OCA-git-bot
a2815a1281 contract 14.0.1.2.0 2023-03-15 12:38:44 +01:00
Ignacio Buioli
e32cf60343 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (306 of 306 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/es_AR/

[UPD] Update contract.pot
2023-03-15 12:38:44 +01:00
Víctor Martínez
e72f0fcba3 [IMP] contract: Improve code to show recurring_rule_type from contract line in portal + [FIX] Force add access_token in "View contract" button from contract modification mail 2023-03-15 12:38:44 +01:00
Denis Roussel
b79b83f0d5 [13.0][FIX] contract: Set layout for section and note in portal template 2023-03-15 12:38:44 +01:00
Pedro M. Baeza
388cee39ef [FIX] contract: Don't change period start date having line recurrence
Fine-tuning of cd086ddbb4. We shouldn't do
this adjustment if the line recurrence is set, as if so, there's no
possibility of adding post-paid lines with proper dates on a running
contract.
2023-03-15 12:38:44 +01:00
Bosd
a1679b598e Translated using Weblate (Dutch)
Currently translated at 74.6% (227 of 304 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/nl/
2023-03-15 12:38:44 +01:00
Yves Le Doeuff
a65c28ff06 Added translation using Weblate (French (France))
Currently translated at 94.7% (288 of 304 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/fr/
2023-03-15 12:38:44 +01:00
Francisco Ivan Anton Prieto
ffa0d6b50d [FIX] contract: restore readme images
[UPD] Update contract.pot

[UPD] README.rst
2023-03-15 12:38:44 +01:00
Francisco Ivan Anton Prieto
86ed1e128c [MIG] contract: Migration to 14.0 2023-03-15 12:38:44 +01:00
Francisco Ivan Anton Prieto
ae6a8179b7 [IMP] contract: black, isort, prettier 2023-03-15 12:38:44 +01:00
Víctor Martínez
080bcef159 [FIX] contract: Changed modification_mail auto to appear like email and not internal comment + Generate recurring invoice
Remove line_ids from invoice values to prevent invoice without lines according to https://github.com/odoo/odoo/pull/67879 change
2023-03-15 12:38:44 +01:00
Pedro M. Baeza
354aa74454 [OU-FIX] contract: Don't alter v12 recurrence mechanism + Transfer contract info from invoice
We can't guarantee the homogeneity of the existing contracts, so we
keep the line recurrence behavior.
2023-03-15 12:38:44 +01:00
newtratip
b90a42d1e5 [13.0][FIX] contract: consistency between contract count and contract action 2023-03-15 12:38:44 +01:00
nans
45ab1aafa3 [FIX] contract: remove groupby if it is in context + consistency between contract count and contract action
On the commercial entity, the count shows all contracts of child partners.
However clicking on the action might show no contract, as the action only
restricted the domain to the partner itself.
We extract the domain into a function to share it in both cases.

Co-authored by @Lopsanz
2023-03-15 12:38:44 +01:00
Víctor Martínez
652c34dcea [FIX] contract: Error in test_contract_invoice_followers 2023-03-15 12:38:44 +01:00
Denis Roussel
d17960dd51 [13.0][FIX] contract: Impossible to create invoices from contract lines as section 2023-03-15 12:38:44 +01:00
Víctor Martínez
9d4a80bc29 [FIX] contract: Modification mail + Auto-create follower in contract creation related to partner_id + Set groups in back_in_edit_mode link to show only correct users + Prevent first contract modification mail to partner
Co-Authored-By: Pedro M. Baeza <pedro.baeza@tecnativa.com>
2023-03-15 12:38:44 +01:00
Ignacio Buioli
826a5785fc Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (304 of 304 strings)

Translation: contract-13.0/contract-13.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-13-0/contract-13-0-contract/es_AR/
2023-03-15 12:38:44 +01:00
Víctor Martínez
632ef42207 [IMP] contract: Add contract modification + contract: Add fields to contract page in portal 2023-03-15 12:38:44 +01:00
Pedro M. Baeza
a3275a71f0 [IMP] contract: JS tour on test assets
[UPD] Update contract.pot

[UPD] README.rst
2023-03-15 12:38:44 +01:00
Víctor Martínez
5f20736565 [IMP] contract: Portal 2023-03-15 12:38:44 +01:00
Ignacio Buioli
f6f79aa785 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (279 of 279 strings)

Translation: contract-13.0/contract-13.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-13-0/contract-13-0-contract/es_AR/
2023-03-15 12:38:44 +01:00
Bosd
7505712931 Translated using Weblate (Dutch)
Currently translated at 71.6% (200 of 279 strings)

Translation: contract-13.0/contract-13.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-13-0/contract-13-0-contract/nl/
2023-03-15 12:38:43 +01:00
Víctor Martínez
5f2e61bb16 [IMP] contract: Add followers to invoices created
[UPD] Update contract.pot

[UPD] README.rst
2023-03-15 12:38:43 +01:00
Ignacio Buioli
06ccb03fff Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (278 of 278 strings)

Translation: contract-13.0/contract-13.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-13-0/contract-13-0-contract/es_AR/
2023-03-15 12:38:43 +01:00
Víctor Martínez
04639a5fb9 [FIX] contract: Only include 'section_and_note_one2many' js widget in view fields that contain it 2023-03-15 12:38:43 +01:00
Carlos Roca
6c4d8b7341 [IMP] contract: Set a condicion to avoid create lines on invoices 2023-03-15 12:38:43 +01:00
Denis Roussel
8f7d244cf8 [13.0][FIX] contract: Recompute recurring next date
After invoice creation, the recurring next date has to be recomputed
in order to get good values

[UPD] Update contract.pot
2023-03-15 12:38:43 +01:00
Pedro M. Baeza
cdec77eda2 [IMP+REF] contract: Allow to set recurrency at header level
Big refactoring for allowing to define recurrency at header level for simplifying
the use of the module for most of the cases where you don't need different
recurrency at line level.
2023-03-15 12:38:43 +01:00
Pedro M. Baeza
23046b09b8 [MIG] contract: Migration to 13.0
- Standard procedure
- Adapt invoice creation to new account.move
- Tests adapted
2023-03-15 12:38:43 +01:00
Pedro M. Baeza
1e66a22c61 [IMP] : black, isort, prettier 2023-03-15 12:38:43 +01:00
sbejaoui
7051ca78c1 [12.0][FIX] - fiscal position, payment mode and pricelist obtained according to contract company 2023-03-15 12:38:43 +01:00