Commit Graph

113 Commits

Author SHA1 Message Date
Dmytro Katyukha
31df1b73ec Rename account_analytic_*_line files
In previous commit 'account_analytic_*_line' model files
were renamed to temporary names.

This commit renames these files to correct names
2018-07-12 14:52:10 +03:00
Dmytro Katyukha
a3da40407c Rename account_analytic_*_line files
In previous commit changed inheritance order of
'account.analytic.*.line' models, thus classes and models were renamed.

This commit only renames files to temporary names.

This commit does not change file contents.
2018-07-12 14:33:27 +03:00
Dmytro Katyukha
2a029138a9 [FIX] analytic invoice/contract lines inheritance
Bug description
---------------

`account.analytic.contract.line` inherits
`account.analytic.invoice.line`

`account.analytic.invoice.line` defines field `analytic_account_id`:
   - comodel='account.analytic.account'

`account.analytic.contract.line` redefines field `analytic_account_id`:
   - comodel='account.analytic.contract'

On attempt to extend `account.analytic.invoice.line` model adding
field that depends on `analytic_account_id.date_start`
Odoo fails to update, because it adds this field to
`account.analytic.contract.line` through inheritance,
and `account.analytic.contract` model have no this field.

What is done
------------

Change inheritance order:
- `account.analytic.invoice.line` inherits
`account.analytic.contract.line`
- no file renames at this stage (this wil be done in next commit)
2018-07-12 13:30:04 +03:00
Jon Erik Ceberio
bb84e77a0e [IMP] contract: possible error in migration if the column does not exist 2018-07-09 12:05:22 +02:00
oca-travis
dbe25cae0c [UPD] Update contract.pot 2018-06-21 18:28:48 +00:00
Carlos Dauden
48dbe3de3d [FIX] contract: Custom values overwrited by xml, missed noupdate 2018-06-13 15:24:01 +02:00
OCA Transbot
958ab57f91 OCA Transbot updated translations from Transifex 2018-05-05 04:14:42 +02:00
OCA Transbot
1262f80eb7 OCA Transbot updated translations from Transifex 2018-04-28 03:55:56 +02:00
Pedro M. Baeza
833b08dc23 [IMP] contract_variable_quantity: Recompute price when changing qty
If you have contract lines with automatic price and your pricelist
contains different prices per quantity, the price is not changed
when computing quantity.

This PR fixes this.
2018-04-24 13:22:37 +02:00
OCA Transbot
8583c7f505 OCA Transbot updated translations from Transifex 2018-04-21 03:41:34 +02:00
OCA Transbot
89132ed7b0 OCA Transbot updated translations from Transifex 2018-04-14 04:12:52 +02:00
Carlos Dauden
78c8326a60 [IMP] contract: Add extend existing invoice possibility 2018-04-05 18:44:25 +02:00
Levent Karakaş
b2d55e359e [FIX] contract: Let billing users have access rights for contracts (#159) 2018-04-01 19:24:19 +02:00
Pedro M. Baeza
ce131a8da9 [IMP] contract: Automatic prices for lines 2018-04-01 19:16:43 +02:00
OCA Transbot
893ea4b516 OCA Transbot updated translations from Transifex 2018-03-31 04:25:49 +02:00
Carlos Dauden
6f33dd5691 [FIX] contract: Invalid pricelist name 2018-03-30 12:25:15 +02:00
Carlos Dauden
d738b5dead [FIX] contract: Onchange contract template raise error 2018-03-28 17:38:01 +02:00
Carlos Dauden
b56be42e2d [11.0][IMP] contract: Improve partner contract smartbutton 2018-03-27 13:21:06 +02:00
OCA Transbot
3dd167190d OCA Transbot updated translations from Transifex 2018-01-27 04:20:47 +01:00
Carlos Dauden
81e14cdce0 [IMP] contract: Add computed dates from/to period invoiced (#140) 2018-01-17 10:22:34 +01:00
OCA Transbot
f36bf9f92f OCA Transbot updated translations from Transifex 2018-01-06 04:13:29 +01:00
Pedro M. Baeza
e63855da6c [FIX] contract: PEP8 2018-01-03 19:32:18 +01:00
Pedro M. Baeza
915c91d9ef [FIX] contract: Correct references in the contract report 2018-01-03 19:26:09 +01:00
Pedro M. Baeza
df6965db61 [FIX+IMP] contract: Real fix to company_id missing + improvements
* company_id was empty because an onchange, not inheritance nor visibility
* Added multi-company group to company_id fields
* Added multi-company access rule to contract templates
* Fix double %% in XML dates that was causing an error
* When creating a contract, recurring_invoices is set by default
2018-01-03 19:10:49 +01:00
Gustavo Orozco H
9c71bd93b5 [10.0][FIX] Correct domain attribute in field journal_id (#120)
* Correct domain attribute in field journal_id

Original domain includes unknown value company_id. Throws error when selecting the journal.

* Corregidos errores detectados por Lint

* Refactoring, DRY

* [FIX] Add missing field company_id to account_analytic_contract

* Small refactoring for company_id field
2018-01-03 19:10:49 +01:00
OCA Transbot
b5036f8332 OCA Transbot updated translations from Transifex 2017-12-30 04:10:45 +01:00
OCA Transbot
fd3052bc46 OCA Transbot updated translations from Transifex 2017-12-16 03:33:56 +01:00
Pedro M. Baeza
8d10f68610 [10.0][FIX+IMP] contract: Improve usability and don't fail on wrong data (#130)
* [FIX+IMP] contract: Improve usability and don't fail on wrong data

* Cron create invoices masked for avoiding silent errors
* New constraints for assuring data consistency
* UI helps for entering consistent data
* Spanish translation
* Remove double company_id field on form
2017-12-11 10:19:10 +01:00
OCA Transbot
761a844aa1 OCA Transbot updated translations from Transifex 2017-11-25 03:29:14 +01:00
Pedro M. Baeza
5ad9b81070 [IMP] contract: Menu position 2017-11-21 19:16:29 +01:00
Fekete Mihai
76f10fd8e2 [MIG] contract: Migration to version 11.0 2017-11-19 05:54:28 +01:00
Pedro Castro Silva
0039964abd [IMP] contract: Add display sequence on contract lines (#119) 2017-11-19 05:54:28 +01:00
Carlos Dauden
801135b3f2 [IMP] contract: Module contract improvements (#107) 2017-11-19 05:54:28 +01:00
Pedro M. Baeza
2cddefbdc6 [IMP] contract: Improvements in tests
* Use SavepointCase for making the setup only once for all tests
* Make them inheritable, creating a base class with only the setup,
  so that it can be inherited without the need of executing all tests
  contained here each time you inherit it, and adding other class
  in the same module that inherits from the base class that actually
  performs the tests.
* Removed duplicated test method
2017-11-19 05:54:28 +01:00
Pedro M. Baeza
98de4e0728 [FIX] contract: Be totally deterministic about which views to use
Having a primary view that is not explicitly declared to be uses and w/o priority
makes Odoo to choose between one of them randomly (well, not exactly, but kind of),
so we put here which views to use.

I have also put tree view as primary and put a large priority for not being
selected on other actions that don't have this explicit views.

A friendly name in views is also assigned.
2017-11-19 05:54:28 +01:00
Pedro M. Baeza
42e3bcf0bc [IMP] contract: Copyright in manifest 2017-11-19 05:54:28 +01:00
Dave Lasley
5b4172213e [FIX] contract: Template lines handling (#92)
Update contract template lines handling to fix #80, and fix #59 #100
2017-11-19 05:54:28 +01:00
OCA Transbot
f2ce31bec9 OCA Transbot updated translations from Transifex 2017-11-19 05:54:28 +01:00
cubells
382e24b7c5 [IMP][10.0] contract: Add report + send by mail (#86)
* [IMP][9.0] contract: Add report + send by mail

* Update translation and rename contract report

* Changes requested and translation updated
2017-11-19 05:54:28 +01:00
Dave Lasley
55b5593e8f [FIX] contract: Operator issue in price get
* Add a default date in the instance that an analytic account doesn’t exist (templates) - fixes #68
2017-11-19 05:54:28 +01:00
OCA Transbot
274234c38a OCA Transbot updated translations from Transifex 2017-11-19 05:54:28 +01:00
Andrea
bf2b135e9c Add 'Date of Next Invoice' in contract list view 2017-11-19 05:54:28 +01:00
Dave Lasley
6722affc66 [IMP][10.0] contract: Add templating (#42)
Add template functionality for contracts
2017-11-19 05:54:28 +01:00
Pedro M. Baeza
c4176f70aa [FIX] contract: README rst format 2017-11-19 05:54:27 +01:00
OCA Transbot
bc07c39b7f OCA Transbot updated translations from Transifex 2017-11-19 05:54:27 +01:00
Pedro M. Baeza
88348eb365 [MIG] contract: Migration to version 10.0 2017-11-19 05:54:27 +01:00
Carlos Dauden
e80cad58fc [IMP] contract: Add past receipt type. Fix yearly. Add month last day 2017-11-19 05:54:27 +01:00
OCA Transbot
01fae7cb28 OCA Transbot updated translations from Transifex 2017-11-19 05:54:27 +01:00
Pedro M. Baeza
c37cf25ec3 [FIX] contract: Assign contract unconditionally 2017-11-19 05:52:57 +01:00
Pedro M. Baeza
47b486f8a4 [IMP] contract: Better README + category 2017-11-19 05:52:57 +01:00