Commit Graph

437 Commits

Author SHA1 Message Date
Ediz Duman
03f756eeea Translated using Weblate (Turkish)
Currently translated at 91.0% (285 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/tr/
2024-03-23 15:10:11 +00:00
juliap98
f6001546ea Translated using Weblate (Catalan)
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/ca/
2024-03-23 15:10:11 +00:00
Denis Roussel
88ddff2ebc [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
2024-03-23 15:10:11 +00:00
Ignacio Buioli
09be01e5f8 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/
2024-03-23 15:10:11 +00:00
Noel estudillo
06193e4f23 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/
2024-03-23 15:10:11 +00:00
Jean-Charles Drubay
aad405e568 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. 2024-03-23 15:10:11 +00:00
Víctor Martínez
e61cb592d9 [IMP] contract: Add discount + price_subtotal fields to the contract lines in the portal view.
TT34117
2024-03-23 15:10:11 +00:00
Joan Mateu Jordi
850238eb84 [15.0][IMP] modify production beta to stable 2024-03-23 15:10:11 +00:00
manu
f8fdb52745 [FIX] contract: Avoid error in invoicing contracts crone 2024-03-23 15:10:11 +00:00
Jean-Charles Drubay
da393c937d [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
2024-03-23 15:10:11 +00:00
Jean-Charles Drubay
162d266218 [IMP] contract: black, isort, prettier 2024-03-23 15:10:10 +00:00
Pedro Castro Silva
17be8bdd2f 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/
2024-03-23 15:10:10 +00:00
pere-aquarian
77423096b9 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/
2024-03-23 15:10:10 +00:00
João Marques
5ff79bd878 [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
2024-03-23 15:10:10 +00:00
Alexis de Lattre
042aaf1573 [FIX] contract: fix an obvious crash when self is a multi-recordset 2024-03-23 15:10:10 +00:00
Ediz Duman
5338abee18 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/
2024-03-23 15:10:10 +00:00
Pedro M. Baeza
eae2dc5a48 [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
2024-03-23 15:10:10 +00:00
Ignacio Buioli
b66018eb6e 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/
2024-03-23 15:10:10 +00:00
Ignacio Buioli
9ce76c14a7 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
2024-03-23 15:10:10 +00:00
Víctor Martínez
6ea141fa4a [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 2024-03-23 15:10:10 +00:00
Denis Roussel
bc6f9ac118 [13.0][FIX] contract: Set layout for section and note in portal template 2024-03-23 15:10:10 +00:00
Pedro M. Baeza
d3846e97a2 [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.
2024-03-23 15:10:10 +00:00
Bosd
a5b10a21c2 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/
2024-03-23 15:10:10 +00:00
Yves Le Doeuff
e390440205 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/
2024-03-23 15:10:10 +00:00
Francisco Ivan Anton Prieto
dd927f4581 [FIX] contract: restore readme images
[UPD] Update contract.pot

[UPD] README.rst
2024-03-23 15:10:10 +00:00
Francisco Ivan Anton Prieto
6965b755e0 [MIG] contract: Migration to 14.0 2024-03-23 15:10:10 +00:00
Francisco Ivan Anton Prieto
cddd13cf5c [IMP] contract: black, isort, prettier 2024-03-23 15:10:10 +00:00
Víctor Martínez
23072ebf7e [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
2024-03-23 15:10:10 +00:00
Pedro M. Baeza
b137995193 [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.
2024-03-23 15:10:10 +00:00
newtratip
88d82f4e21 [13.0][FIX] contract: consistency between contract count and contract action 2024-03-23 15:10:10 +00:00
nans
de55a7fb08 [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
2024-03-23 15:10:10 +00:00
Víctor Martínez
7cf5d4547c [FIX] contract: Error in test_contract_invoice_followers 2024-03-23 15:10:10 +00:00
Denis Roussel
b0e941de1e [13.0][FIX] contract: Impossible to create invoices from contract lines as section 2024-03-23 15:10:10 +00:00
Víctor Martínez
67d5c43618 [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>
2024-03-23 15:10:10 +00:00
Ignacio Buioli
c0aa7936c1 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/
2024-03-23 15:10:10 +00:00
Víctor Martínez
7b938dfdc3 [IMP] contract: Add contract modification + contract: Add fields to contract page in portal 2024-03-23 15:10:10 +00:00
Pedro M. Baeza
2e5b3b21d6 [IMP] contract: JS tour on test assets
[UPD] Update contract.pot

[UPD] README.rst
2024-03-23 15:10:10 +00:00
Víctor Martínez
1a1d301251 [IMP] contract: Portal 2024-03-23 15:10:10 +00:00
Ignacio Buioli
c228e52167 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/
2024-03-23 15:10:10 +00:00
Bosd
48fc230630 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/
2024-03-23 15:10:10 +00:00
Víctor Martínez
5b52ee97d0 [IMP] contract: Add followers to invoices created
[UPD] Update contract.pot

[UPD] README.rst
2024-03-23 15:10:10 +00:00
Ignacio Buioli
cdc17eba63 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/
2024-03-23 15:10:10 +00:00
Víctor Martínez
15b1e29650 [FIX] contract: Only include 'section_and_note_one2many' js widget in view fields that contain it 2024-03-23 15:10:10 +00:00
Carlos Roca
f4c0376a62 [IMP] contract: Set a condicion to avoid create lines on invoices 2024-03-23 15:10:10 +00:00
Denis Roussel
de8ad4886c [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
2024-03-23 15:10:10 +00:00
Pedro M. Baeza
1a31ec1ee7 [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.
2024-03-23 15:10:10 +00:00
Pedro M. Baeza
017faff34a [MIG] contract: Migration to 13.0
- Standard procedure
- Adapt invoice creation to new account.move
- Tests adapted
2024-03-23 15:10:10 +00:00
Pedro M. Baeza
a425d2a431 [IMP] : black, isort, prettier 2024-03-23 15:10:10 +00:00
sbejaoui
46e0645584 [12.0][FIX] - fiscal position, payment mode and pricelist obtained according to contract company 2024-03-23 15:10:10 +00:00
Jairo Llopis
6accadb475 [FIX] contract: multi-company assignment notification
Steps to reproduce the problem:

1. Log in as Mitchell Admin.
2. Create contract CNT-A for company CMP-A, assigned to Marc Demo.
3. Create contract CNT-B for company CMP-B, assigned to Marc Demo.
4. Run cron to create recurring invoices.

Actual results:

- Odoo sends automated assignment emails to Marc Demo, which indicate the name of the company activated for `__system__` user whlie the cron was being executed.

Expected results after this patch:

- Odoo sends automated assignment emails to Marc Demo, which indicate the invoice company.

@Tecnativa TT24657
2024-03-23 15:10:10 +00:00