Commit Graph

972 Commits

Author SHA1 Message Date
oca-ci
8fd25d6501 [UPD] Update agreement_rebate_partner_company_group.pot 2022-10-14 17:17:03 +00:00
OCA-git-bot
f47f63c0e9 Merge PR #882 into 13.0
Signed-off-by pedrobaeza
2022-10-14 17:09:00 +00:00
Carlos Dauden
62e468e9b5 [ADD] agreement_rebate_partner_company_group: New module that apply agreement to all company group members
TT34815
2022-10-14 10:49:46 +02:00
Douglas Custódio
8a8f3ddf06 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (3 of 3 strings)

Translation: contract-13.0/contract-13.0-contract_variable_qty_timesheet
Translate-URL: https://translation.odoo-community.org/projects/contract-13-0/contract-13-0-contract_variable_qty_timesheet/pt_BR/
2022-10-12 03:43:04 +00:00
OCA Transbot
3be66bd67c Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-13.0/contract-13.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-13-0/contract-13-0-contract/
2022-09-30 23:52:30 +00:00
OCA-git-bot
29715f0df5 [UPD] addons table in README.md 2022-09-30 23:52:13 +00:00
oca-ci
72202d37bd [UPD] Update contract.pot 2022-09-30 23:46:48 +00:00
OCA-git-bot
3530fa1a32 Merge PR #866 into 13.0
Signed-off-by pedrobaeza
2022-09-30 23:41:48 +00:00
OCA Transbot
d70790bc1b Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-13.0/contract-13.0-contract_price_revision
Translate-URL: https://translation.odoo-community.org/projects/contract-13-0/contract-13-0-contract_price_revision/
2022-09-30 23:14:27 +00:00
OCA-git-bot
f5bf308cd6 [UPD] addons table in README.md 2022-09-30 19:46:03 +00:00
OCA-git-bot
b146878014 contract_price_revision 13.0.1.0.1 2022-09-30 19:45:58 +00:00
OCA-git-bot
d5e328a0b3 [ADD] setup.py 2022-09-30 19:45:58 +00:00
OCA-git-bot
374e6d1828 [UPD] README.rst 2022-09-30 19:45:57 +00:00
OCA-git-bot
afa84b2a0c [UPD] addons table in README.md 2022-09-30 19:45:54 +00:00
oca-ci
86f2a321ad [UPD] Update contract_price_revision.pot 2022-09-30 19:40:48 +00:00
OCA-git-bot
4927682a8f Merge PR #864 into 13.0
Signed-off-by rafaelbn
2022-09-30 19:34:01 +00:00
Denis Roussel
59e2099eaf [IMP] contract: Add contract date
In some cases, the contract date (e.g.: signature date) can be different from the
start date (e.g.: signature on 05/15/2022 and start date on 06/01/2022).

It can have importance in case of prices revisions from a legal point of view as
this is the contract date that has to be taken into account.
2022-08-10 18:12:14 +02:00
Denis Roussel
6b9d253474 [IMP] contract_price_revision: Allows to restrict price revision on some lines
As if recurrence management is per line, some lines should be excluded from price revision.
2022-08-08 18:42:11 +02:00
Denis Roussel
65c44a6997 [IMP] contract_price_revision: Improve compatibility with contract base module
Values for new line should come from _prepare_value_for_plan_successor function
adding the new price.
2022-08-08 10:41:48 +02:00
OCA-git-bot
3a3692ed45 Merge PR #865 into 13.0
Signed-off-by rousseldenis
2022-08-07 22:04:04 +00:00
Denis Roussel
9356ce0058 [13.0][FIX] agreement_rebate: Add freezegun for tests 2022-08-07 23:53:18 +02:00
Denis Roussel
fe99d30a3f [IMP] contract_price_revision: Improve readability by adding a computed field 'price_can_be_revised' 2022-08-07 23:41:51 +02:00
Denis Roussel
1f1745da67 [FIX] contract_price_revision: Use digits string instead of decimal precision 2022-08-07 19:24:59 +02:00
Denis Roussel
bbc9f70e35 [13.0][FIX] contract_price_revision: Copy() does the job 2022-08-07 19:23:09 +02:00
Denis Roussel
961cdcb62d [13.0][FIX] contract_price_revision: Recurring next date is not well computed
On new line creation when applying wizard, the stored values
are not recomputed, so recomputing them
2022-08-07 19:23:09 +02:00
Denis Roussel
389201cad6 [13.0][IMP] contract_price_revision: Add fixed price revision 2022-08-07 19:23:09 +02:00
Denis Roussel
0cf9d8f9ef [13.0][MIG] contract_price_revision 2022-08-07 19:23:09 +02:00
Denis Roussel
4569dcf841 [IMP] contract_price_revision: black, isort, prettier 2022-08-07 19:23:09 +02:00
OCA-git-bot
fbf62c1036 contract_price_revision 12.0.1.0.1 2022-08-07 19:23:09 +02:00
OCA-git-bot
bdca1a199b [UPD] README.rst 2022-08-07 19:23:09 +02:00
sbejaoui
25a28edb41 [FIX] - fix development_status 2022-08-07 19:23:09 +02:00
oca-travis
369126b0c0 [UPD] Update contract_price_revision.pot 2022-08-07 19:23:09 +02:00
Andrea
118d268cc5 [FIX] contract_price_revision: Skip revising lines that are not valid anymore
cherry-pick db5c3d6472
2022-08-07 19:23:09 +02:00
Carlos Dauden
77b1b1cee1 [MIG] contract_price_revision: Migration to 12.0 2022-08-07 19:23:09 +02:00
OCA-git-bot
e4ea2cf9cd [UPD] README.rst 2022-08-07 19:23:09 +02:00
OCA-git-bot
dc65c09993 [ADD] icon.png 2022-08-07 19:23:09 +02:00
OCA Transbot
961fc60ab8 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-11.0/contract-11.0-contract_price_revision
Translate-URL: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-contract_price_revision/
2022-08-07 19:23:09 +02:00
oca-travis
e31fe2b66f [UPD] Update contract_price_revision.pot 2022-08-07 19:23:09 +02:00
Pedro M. Baeza
44e16364fb [IMP] contract_price_revision: Improve a bit performance 2022-08-07 19:23:09 +02:00
cubells
eb95bc3fca [ADD] contract_price_revision: new module to update contract prices easily 2022-08-07 19:23:09 +02:00
OCA Transbot
444d48e82c Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-13.0/contract-13.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-13-0/contract-13-0-contract/
2022-08-01 12:12:50 +00:00
OCA-git-bot
876c2df44b [UPD] addons table in README.md 2022-08-01 12:12:28 +00:00
OCA-git-bot
6317fa5fef contract 13.0.2.9.0 2022-08-01 12:12:23 +00:00
oca-ci
eb4eb5182d [UPD] Update contract.pot 2022-08-01 12:07:28 +00:00
OCA-git-bot
88b7fdc05b Merge PR #860 into 13.0
Signed-off-by pedrobaeza
2022-08-01 12:01:34 +00:00
chandni299
d951d9678e [13.0][IMP] contract : show tags with colors in the contract 2022-07-27 14:00:41 +02:00
OCA-git-bot
8dc859db11 [UPD] addons table in README.md 2022-07-04 06:36:48 +00:00
OCA-git-bot
9dfcd5de5a contract 13.0.2.8.1 2022-07-04 06:36:43 +00:00
OCA-git-bot
307d411bf4 Merge PR #853 into 13.0
Signed-off-by rousseldenis
2022-07-04 06:31:17 +00:00
Pedro M. Baeza
ce8c1fac59 [FIX] contract: Reset next invoicing date when terminating a line
Steps to reproduce the problem:

- Create a new contract
- Set "Recurrence at line level?"
- Add a new line, with following data:

  * Invoice Every: 1 Month(s)
  * Date Start: 2022-06-01
  * Invoicing type: Pre-paid
- Save and click on "Create invoices" button
- Now edit again and put "Date End": 2022-06-30

Current behavior:

The line is still invoiceable (appears in blue), and if you click on
"Create invoices" button, you get the traceback:

```
  ...
  File "/mnt/data/odoo-addons-dir/contract/models/contract.py", line 534, in recurring_create_invoice
    invoice = self._recurring_create_invoice()
  File "/mnt/data/odoo-addons-dir/contract/models/contract.py", line 561, in _recurring_create_invoice
    invoices_values = self._prepare_recurring_invoices_values(date_ref)
  File "/mnt/data/odoo-addons-dir/contract/models/contract.py", line 516, in _prepare_recurring_invoices_values
    invoice_line_vals = line._prepare_invoice_line(move_form=move_form)
  File "/mnt/data/odoo-addons-dir/contract_layout_category_hide_detail/models/contract_line.py", line 12, in _prepare_invoice_line
    vals = super()._prepare_invoice_line(move_form)
  File "/mnt/data/odoo-addons-dir/product_contract/models/contract_line.py", line 22, in _prepare_invoice_line
    res = super(ContractLine, self)._prepare_invoice_line(move_form)
  File "/mnt/data/odoo-addons-dir/contract_variable_quantity/models/contract_line.py", line 44, in _prepare_invoice_line
    vals = super()._prepare_invoice_line(move_form)
  File "/mnt/data/odoo-addons-dir/contract/models/contract_line.py", line 545, in _prepare_invoice_line
    name = self._insert_markers(dates[0], dates[1])
  File "/mnt/data/odoo-addons-dir/contract/models/contract_line.py", line 595, in _insert_markers
    name = name.replace("#END#", last_date_invoiced.strftime(date_format))
AttributeError: 'bool' object has no attribute 'strftime'
```

Expected behavior:

Line is not invoiceable anymore, and "Create invoices" button disappears
(as no invoiceable line - but anyways, calling the method the same
doesn't trigger the invoice creation).

TT37880
2022-07-01 20:02:31 +02:00