Commit Graph

103 Commits

Author SHA1 Message Date
OCA-git-bot
5d5ab040fb [BOT] post-merge updates 2024-12-17 00:43:10 +00:00
OCA-git-bot
cecdbeca14 [BOT] post-merge updates 2024-12-05 10:32:53 +00:00
OCA-git-bot
f484fdfbf0 [BOT] post-merge updates 2024-12-04 20:31:57 +00:00
OCA-git-bot
12b5a75d60 [BOT] post-merge updates 2024-12-03 12:45:33 +00:00
OCA-git-bot
aa4996b5de [BOT] post-merge updates 2024-08-26 06:50:37 +00:00
OCA-git-bot
19859e3e9c [BOT] post-merge updates 2024-07-08 10:22:54 +00:00
OCA-git-bot
6f486cf5f9 [BOT] post-merge updates 2024-05-23 06:39:50 +00:00
OCA-git-bot
2b8ecce78a [BOT] post-merge updates 2024-04-12 14:37:40 +00:00
OCA-git-bot
956d421bc8 [BOT] post-merge updates 2024-04-03 06:47:32 +00:00
OCA-git-bot
14aebe6098 [BOT] post-merge updates 2024-03-21 18:06:15 +00:00
OCA-git-bot
18d62d3652 [BOT] post-merge updates 2024-03-18 15:10:55 +00:00
OCA-git-bot
4e74027612 [BOT] post-merge updates 2024-03-16 15:30:00 +00:00
OCA-git-bot
3168f42611 [BOT] post-merge updates 2024-03-15 07:34:02 +00:00
OCA-git-bot
8436099ca3 [BOT] post-merge updates 2024-02-15 18:37:51 +00:00
OCA-git-bot
bb21d9d208 [BOT] post-merge updates 2024-02-13 08:21:34 +00:00
OCA-git-bot
2583072ddd [BOT] post-merge updates 2024-01-30 18:04:26 +00:00
fkantelberg
f7c4b5c71f [MIG] contract: Remove analytic_account_id and add migration 2024-01-05 11:03:00 +01:00
OCA-git-bot
cb81c7d021 [BOT] post-merge updates 2024-01-04 09:49:55 +00:00
OCA-git-bot
0fda3e471b [BOT] post-merge updates 2023-11-08 21:21:47 +00:00
Jose Suniaga [Vauxoo]
6c0f22efe2 [FIX] contract: removed dateutil from dependencies
Since Odoo 16.0 has included dateutil on its dependencies,
loading dateutil from here is generating Warning in Odoo.sh
deployments
2023-11-08 13:41:44 -06:00
OCA-git-bot
774d4b8898 [BOT] post-merge updates 2023-10-09 15:25:14 +00:00
OCA-git-bot
d69a545afa contract 16.0.1.1.0 2023-08-03 15:03:36 +00:00
Wolfgang Pichler
10e9287cb6 [MIG] contract: Migration to 16.0 2023-03-15 12:38:45 +01:00
Christopher Rogos
e79298dfb8 [IMP] Add link to contract in invoice chatter 2023-03-15 12:38:45 +01:00
Víctor Martínez
d381d11917 [IMP] contract: Set invoice_user_id field with Form() to apply the correct values of other fields (team_id for example).
TT39934
2023-03-15 12:38:45 +01:00
Víctor Martínez
56f4b44a5a [IMP] contract: Use _prepare_home_portal_values() function. 2023-03-15 12:38:45 +01:00
chandni299
ad929e2512 [15.0][IMP] contract : show tags with colors in the contract 2023-03-15 12:38:45 +01:00
João Marques
286399345f [FIX] contract: Remove noupdate in mail template data
TT29820
2023-03-15 12:38:45 +01:00
mariadforgeflow
e230ba9f0f [FIX] contract: add default_move_type in context 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
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
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
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
OCA-git-bot
a2815a1281 contract 14.0.1.2.0 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
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
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
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
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