Commit Graph

45 Commits

Author SHA1 Message Date
OCA-git-bot
e4e520ab2c Merge PR #821 into 14.0
Signed-off-by leemannd
2023-07-10 09:15:37 +00:00
niyasraphy
507a87b2f8 [FIX] contract: show uom only when multi uom is activated
before this commit, the unit of measure field is
always visible in different views, irrespective
of the unit of measure option in the settings.

after this commit, the unit of measure field will
be shown only if the multi uom feature is activated
in the settings.
2023-05-19 13:23:14 +03:00
stenex
7b896a0d5f [IMP] Add INVOICEMONTHNAME marker to line description 2023-05-11 10:12:27 +02:00
Alexis de Lattre
000ad9eabb [FIX] Add check_company=True on contracts and contract lines
Add check_company=True in field definition and
[('company_id', '=', company_id)] in the domain (in view or in field definition)
2023-02-26 23:01:43 +01:00
chandni299
2ad4a2d790 [14.0][IMP] contract : show tags with colors in the contract 2022-07-27 14:43:19 +02:00
OCA-git-bot
628ec6fc68 Merge PR #809 into 14.0
Signed-off-by rousseldenis
2022-06-18 11:15:27 +00:00
Denis Roussel
25dd79a8d0 [IMP] contract: Add contract lines entry point for reporting 2022-05-16 09:15:47 +02:00
Denis Roussel
5b5948b4a6 [14.0][IMP] contract: Make last_date_invoiced optional 2022-03-23 16:16:41 +01:00
OCA-git-bot
517170d23f Merge PR #772 into 14.0
Signed-off-by pedrobaeza
2022-02-23 22:25:57 +00:00
Denis Roussel
81872b3a49 [IMP] contract: Update button visibility 2022-01-26 09:04:31 +01:00
Denis Roussel
ab1c15b4ca [IMP] contract: Add generation_type field 2022-01-26 09:04:31 +01:00
Denis Roussel
6fd2749114 [IMP] contract: Set visibility on button to show invoices 2022-01-26 09:04:31 +01:00
Denis Roussel
e0b44cfa39 [14.0][IMP] contract: Remove deprecated domain in onchange 2022-01-25 12:00:02 +01:00
Víctor Martínez
d7dee0c1f8 [IMP] contract: Add contract modification 2021-04-01 13:53:04 +02:00
Víctor Martínez
ea928628bb [IMP] contract: Portal 2021-04-01 13:53:03 +02:00
Pedro M. Baeza
3374384101 [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-04-01 13:53:03 +02:00
Pedro M. Baeza
fc4eb98c74 [MIG] contract: Migration to 13.0
- Standard procedure
- Adapt invoice creation to new account.move
- Tests adapted
2021-04-01 13:53:03 +02:00
Pedro M. Baeza
a2f71595bf [IMP] : black, isort, prettier 2021-04-01 13:53:03 +02:00
Ernesto Tejeda
493501e6c7 [IMP] contract: add section and notes in contract line 2021-04-01 13:53:03 +02:00
sbejaoui
f9167d81e8 [IMP] - Add contract tags 2021-04-01 13:53:03 +02:00
sbejaoui
3ff689a01d [IMP] - contract termination 2021-04-01 13:53:03 +02:00
sbejaoui
1533e3cd4c [12.0][IMP] - Improve partner With running contracts search view filter 2021-04-01 13:53:03 +02:00
sbejaoui
f2de4aafe9 [12.0][ADD] - Add note field to contract 2021-04-01 13:53:02 +02:00
hparfr
cc7f8c66a1 Add commercial_partner_id fields into contract module
Remove string attribute
2021-04-01 13:53:02 +02:00
sbejaoui
f55b537d08 [IMP] - Make one migration from 12.0.1 to 12.0.4
[RMV] - Remove empty file

[IMP] - Update no_update cron after migration

[IMP] - move contract template recurrence info to line level

[FIX] - Fix contract line model description

[IMP] - Link contracts to analytic accounts

[FIX] - Fix pylint

[IMP] - Move chatter and attachments from analytic account to contract

[IMP] - Move account_analytic_id to contract line level

[IMP] - Improve version check in migration script

[IMP] - Move contracts followers from analytic accounts

[ADD] - Add mail.activity.mixin to contract.contract model

remove data drop from migration scripts

[12.0][FIX] - Fix _init_last_date_invoiced

fix flake8

[ADD] - Update contributors list
2021-04-01 13:53:02 +02:00
Thomas Binsfeld
c770e97adb [REF] Contract Sale Invoicing: split from analytic account
[REF] Contract Sale Invoicing: update translations

[IMP] - Assert that the predecessor is available for new link at uncancel

[RMV] - remove usless changes

[RMV] - Remove usless field recurring_invoices

after the total isolation between contract model and account analytic one.
recurring_invoices which was used to mark analytic account as contract became usless

[IMP] - P3 syntax

[IMP] - use @openupgrade.migrate() and openupgrade.logged_query

[IMP] - drop transient table in migration script
2021-04-01 13:53:02 +02:00
Thomas Binsfeld
3ca769e079 [REF] Contract: split from analytic account 2021-04-01 13:53:02 +02:00
Thomas Binsfeld
70db1094ff [REF] Contract: use context_today instead of time in filters 2021-04-01 13:53:02 +02:00
sbejaoui
5c8c875b61 [FIX] - don't play onchange date_start for old lines on contract template change
[FIX] - Fix stop post message

[FIX] - Fix sale_contract_count should count all partner contract

[FIX] - set recurring_next_date to False if contract line stoped at last date invoiced

[FIX] - Group by next_invoice also considers dates in the past
2021-04-01 13:53:02 +02:00
sbejaoui
5248e17bab [FIX] - Onchange contract line don't reste contract lines
[FIX] - Rename _get_invoiced_period to _get_period_to_invoice

[ADD] - Add stop_at_date_end to _get_period_to_invoice

[FIX] - Remove useless filter
2021-04-01 13:53:02 +02:00
sbejaoui
af8efa9505 [FIX] - Fix In progress contract filter 2021-04-01 13:53:02 +02:00
Thomas Binsfeld
62e1a7fd79 [IMP] Contract: matching invoice view depending on contract type
[ADD] Contract: invoice partner
2021-04-01 13:53:02 +02:00
Thomas Binsfeld
ac56addd2b [ADD] Contract: fiscal position
[ADD] Contract: new contributor

[REF] Contract: indexes
2021-04-01 13:53:02 +02:00
sbejaoui
46133d4175 [IMP] - Link invoice line to contract lines
[IMP] - Add index on contract line

[IMP] - Add is_suspended flag and _search_state

[IMP] - Add is_suspended flag to stop contract line
2021-04-01 13:53:02 +02:00
sbejaoui
8bef36cdd3 [IMP] - Improve inprogress search filter 2021-04-01 13:53:02 +02:00
Thomas Binsfeld
4f574d57d5 [ADD] Contract: payment term 2021-04-01 13:53:02 +02:00
sbejaoui
efff64f817 [IMP] - Add responsible to contract form view 2021-04-01 13:53:02 +02:00
sbejaoui
0e27aa2365 [IMP] - Add primary views for contract
[IMP] - don't use related filed for partner_id and pricelist_id
2021-04-01 13:53:02 +02:00
sbejaoui
48d7ec9631 [FIX] - invoice last period for post-paid case 2021-04-01 13:53:02 +02:00
sbejaoui
c43a9fb533 [12.0][IMP] - Add strat/stop wizard to contract line
[12.0][IMP] - Add pause button to contract line

[IMP] - Add state filed in contract line form

[FIX] - stop don't change date_end for finished contract line

[IMP] - Change contract line buttons visibility

Add renewal process with termination notice

[FIX] - don't consider stop_date If it is after the contract line end_date

[IMP] - consider more cases in stop_plan_successor

[IMP] - cancel upcoming line on stop

[IMP] - Chnage next invoice date on un-cancel

[IMP] - Post message in contract on contract line actions

[IMP] - check contract line overlap
2021-04-01 13:53:02 +02:00
sbejaoui
e5672914df [IMP] - Make recurrence mechanism on contract line
Make recurrence mechanism on contract line and some other refactoring

[FIX] - Keep contract_cron on account_analytic_account model

contract_cron defined with no_update option.
Changing it, will cause issue to past version installation.

[IMP] - Fix recurring_next_date default value

recurring_next_date should have start_date as default value in prepaid policy
and start_date + invoicing_interval if postpaid

[FIX] - Fix test check no journal

[IMP] - Return created invoices on recurring_create_invoice

[IMP] - Specific process to compute recurring_next_date for  monthly-last-day

fixes: #198

[ADD] - Add Post-migration script to bring recurrence info from contract to contract lines

[ADD] - Add search filter based on date_end and recurring_next_date

 - not_finished filter in contract search view
 - finished filter in contract search view
 - Next Invoice group by in contract search view

[ADD] - Add unit tests

- cases to compute first recurring next date
- contract recurring_next_date
- contract date_end

[IMP] - Improve Unit tests
2021-04-01 13:53:02 +02:00
Dave Lasley
4615a1bd18 [IMP][10.0] contract: Add templating (#42)
Add template functionality for contracts
2021-04-01 13:53:02 +02:00
Pedro M. Baeza
1897314dce [MIG] contract: Migration to version 10.0 2021-04-01 13:53:02 +02:00
Carlos Dauden
671c8b9c3c [IMP] contract: Add past receipt type. Fix yearly. Add month last day 2021-04-01 13:53:02 +02:00
Carlos Incaser
bf72221fb5 [MIG] contract: from v7 to v9 improving features
* Tests added
* Filters added.
* Add _id/_ids in old property fields
* Translations
2021-04-01 13:53:01 +02:00