Carolina Fernandez
b8e861cfd5
[15.0][FIX] contract: invoice message create
2023-10-09 11:56:05 -03:00
Maximilien TANTIN
e38559580f
[IMP] contract: Set name='/' for contract invoices
2023-10-04 21:23:18 +02:00
Pedro M. Baeza
d977d238e3
[FIX] contract: Apply some values directly in Form
...
If not applied, they will not be taken into account in the lines
operations.
We have needed to add an auxiliary form that adds the fields without
groups.
TT45329
2023-10-04 21:20:39 +02:00
fkantelberg
2d8d3d1219
[FIX] No contract line and invoices when contract is archived
2023-01-24 09:54:12 +01:00
Mourad
eda6d54d63
[FIX] contract: bug onchange date_start (comparison between bool and date)
2022-11-03 19:57:19 +01:00
Víctor Martínez
dc6aeaea66
[FIX] contract: Change pylint disable
2022-11-03 12:08:16 +01:00
OCA-git-bot
57c1e1b1ff
Merge PR #885 into 15.0
...
Signed-off-by pedrobaeza
2022-10-20 19:01:51 +00:00
Christopher Rogos
1b2eee84e9
[IMP] Add link to contract in invoice chatter
2022-10-20 17:44:03 +02:00
Víctor Martínez
4d55c73699
[IMP] contract: Set invoice_user_id field with Form() to apply the correct values of other fields (team_id for example).
...
TT39934
2022-10-18 15:54:49 +02:00
chandni299
bf87ff00e8
[15.0][IMP] contract : show tags with colors in the contract
2022-07-27 15:11:25 +02:00
Denis Roussel
266780115a
[FIX][15.0] contract: Fix forwardport from 14.0 #741
2022-06-22 11:23:07 +02:00
Denis Roussel
ff2f75bbb5
contract: Improve function call for cron recurring creates
2022-06-22 11:23:07 +02:00
Denis Roussel
df081317bb
contract: Add explicit cron create type for invoices
2022-06-22 11:23:07 +02:00
Denis Roussel
bef7151301
contract: Use Odoo conventions for methods
2022-06-22 11:23:07 +02:00
Denis Roussel
ce38e335fa
contract: Allows to get several functions to create recurring documents
2022-06-22 11:23:07 +02:00
Denis Roussel
a161a88387
contract: Add a generation type on contract
...
Add a generation type on contract that allows to generate other
document than invoice (e.g. sale order)
2022-06-22 11:23:07 +02:00
Denis Roussel
ec3f251494
contract: Improve invoice generation through cron
...
Avoid too much sql queries by iterating on first search
Avoid performances problems through invoices ids isntead
of recordset
2022-06-22 11:23:07 +02:00
mariadforgeflow
61aad938df
[FIX] contract: add default_move_type in context
2022-05-24 09:59:20 +02:00
oca-git-bot
636b6bc859
[IMP] update dotfiles [ci skip]
2022-03-30 22:07:30 +02:00
Denis Roussel
d0b353a917
contract: Add comment to remind updating method in next version
2022-03-09 09:55:08 +01:00
Denis Roussel
7736b823ff
contract: 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.
2022-03-09 09:55:08 +01:00
Denis Roussel
730b832466
contract: Compute recurring_next_date for False values too
2022-03-09 09:55:08 +01:00
Denis Roussel
5062dd6e6e
contract: Don't update recurring_next_date as computed
2022-03-09 09:55:08 +01:00
manu
27700a9e0e
[FIX] contract: Avoid error in invoicing contracts crone
2021-12-16 10:24:02 +01:00
Jean-Charles Drubay
119b5b6700
[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
2021-11-09 10:08:29 +07:00
Jean-Charles Drubay
7537451d2f
[IMP] contract: black, isort, prettier
2021-11-09 10:08:29 +07:00
João Marques
992cac4deb
[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
2021-11-09 10:08:29 +07:00
Alexis de Lattre
a60709e1bd
[FIX] contract: fix an obvious crash when self is a multi-recordset
2021-11-09 10:08:29 +07:00
Pedro M. Baeza
4d1a3b31c5
[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
2021-11-09 10:08:29 +07:00
Pedro M. Baeza
fad369e47b
[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.
2021-11-09 10:08:23 +07:00
Francisco Ivan Anton Prieto
40851a4934
[MIG] contract: Migration to 14.0
2021-11-09 10:08:21 +07:00
Francisco Ivan Anton Prieto
0853330308
[IMP] contract: black, isort, prettier
2021-11-09 10:08:21 +07:00
Víctor Martínez
ed2f6429eb
[FIX] contract: Generate recurring invoice
...
Remove line_ids from invoice values to prevent invoice without lines according to https://github.com/odoo/odoo/pull/67879 change
2021-11-09 10:08:21 +07:00
Víctor Martínez
f9bf927689
[FIX] contract: Changed modification_mail auto to appear like email and not internal comment
2021-11-09 10:08:20 +07:00
newtratip
ee30ae79ef
[13.0][FIX] contract: consistency between contract count and contract action
2021-11-09 10:08:20 +07:00
nans
e80d79a1e6
[FIX] contract: 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.
2021-11-09 10:08:20 +07:00
nans
034c50df30
[FIX] contract: remove groupby if it is in context
...
Co-authored by @Lopsanz
2021-11-09 10:08:20 +07:00
Víctor Martínez
54a0fc96c4
[FIX] contract: Error in test_contract_invoice_followers
2021-11-09 10:08:20 +07:00
Denis Roussel
b1c2a771bb
[13.0][FIX] contract: Impossible to create invoices from contract lines as section
2021-11-09 10:08:20 +07:00
Víctor Martínez
30417a789c
[FIX] contract: Prevent first contract modification mail to partner
2021-11-09 10:08:20 +07:00
Víctor Martínez
09dbba7b03
[FIX] contract: Set groups in back_in_edit_mode link to show only correct users
2021-11-09 10:08:20 +07:00
Víctor Martínez
9120b7fc4c
[FIX] contract: Modification mail + Auto-create follower in contract creation related to partner_id
...
Co-Authored-By: Pedro M. Baeza <pedro.baeza@tecnativa.com >
2021-11-09 10:08:20 +07:00
Víctor Martínez
39bae838e9
[FIX] contract: Missing migration to 13.0
2021-11-09 10:08:20 +07:00
Víctor Martínez
ea8fefaec9
[IMP] contract: Add contract modification
...
[UPD] Update contract.pot
2021-11-09 10:08:15 +07:00
Víctor Martínez
5d558019d3
[IMP] contract: Portal
2021-11-09 10:08:11 +07:00
Víctor Martínez
da79e59a16
[IMP] contract: Add followers to invoices created
...
[UPD] Update contract.pot
[UPD] README.rst
2021-11-09 10:08:05 +07:00
Carlos Roca
1a27e082b6
[IMP] contract: Set a condicion to avoid create lines on invoices
2021-11-09 10:08:05 +07:00
Denis Roussel
c6ea22e985
[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
2021-11-09 10:08:02 +07:00
Pedro M. Baeza
8d2dfb0376
[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.
2021-11-09 10:08:01 +07:00
Pedro M. Baeza
9ed0486d44
[MIG] contract: Migration to 13.0
...
- Standard procedure
- Adapt invoice creation to new account.move
- Tests adapted
2021-11-09 10:08:01 +07:00