Commit Graph

51 Commits

Author SHA1 Message Date
Pedro M. Baeza
d87042f73f Update README.rst 2018-01-09 17:59:38 +01:00
Pedro M. Baeza
b221461d6e [IMP] contract_variable_quantity: Spanish translation 2018-01-09 17:59:38 +01:00
Pedro M. Baeza
5aeec17131 [IMP] contract_variable_quantity: Screenshot 2018-01-09 17:59:38 +01:00
Pedro M. Baeza
5d8a2026b0 [ADD] contract_variable_quantity:
=================================================
Variable quantity in contract recurrent invoicing
=================================================

With this module, you will be able to define in recurring contracts some
lines with variable quantity according a provided formula.

Configuration
=============

* Go to Sales > Configuration > Contracts > Formulas (quantity).
* Define any formula based on Python code that stores at some moment a
  float/integer value of the quantity to invoice in the variable 'result'.

  You can use these variables to compute your formula:

  * *env*: Environment variable for getting other models.
  * *context*: Current context dictionary.
  * *user*: Current user.
  * *line*: Contract recurring invoice line that triggers this formula.
  * *contract*: Contract whose line belongs to.
  * *invoice*: Invoice (header) being created.

Usage
=====

To use this module, you need to:

* Go to Sales -> Contracts and select or create a new contract.
* Check *Generate recurring invoices automatically*.
* Add a new recurring invoicing line.
* Select "Variable quantity" in column "Qty. type".
* Select one of the possible formulas to use (previously created).
2018-01-09 17:59:38 +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
OCA Git Bot
575d7d816f [ADD] setup.py 2017-11-20 04:34:51 +01:00
Pedro M. Baeza
fe7e87c68a Merge pull request #121 from feketemihai/11.0-mig-contract
[11.0] [MIG] contract
2017-11-19 14:44:09 +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
carlosdauden
31ed538db5 [9.0][IMP] contract: Get default invoice contact. (#32) 2017-11-19 05:52:57 +01:00
OCA Transbot
4eef0e07d7 OCA Transbot updated translations from Transifex 2017-11-19 05:52:57 +01:00
Carlos Incaser
6a5446bfab [MIG] contract: from v7 to v9 improving features
* Tests added
* Filters added.
* Add _id/_ids in old property fields
* Translations
2017-11-19 05:52:57 +01:00
Alexandre Fayolle
110dbae578 Add OCA as author of OCA addons
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
2017-11-19 05:52:57 +01:00
Pedro M. Baeza
6ed22c3ba9 [IMP] account_analytic_analysis_recurring: Hook method for preparing invoice lines 2017-11-19 05:52:57 +01:00
moylop260
d03b04e6b8 [REF] auto-fix conventions 2017-11-19 05:52:57 +01:00
Federico Cruz
71f291624e [FIX] contract: Set correct company on invoices when working on multicompany environment
Now when working on multy company environmets the server action creates
invioices with accounts belong to correct company based on contract company.
2017-11-18 19:39:23 +01:00
Pedro M. Baeza
03f868e090 [FIX] account_analytic_analysis_recurring: #START# and #END# set correctly
[IMP] Some conventions
2017-11-18 19:39:23 +01:00
Pedro M. Baeza
38a0eb8b58 [FIX] account_analytic_analysis_recurring: Currency for created invoices. 2017-11-18 19:39:22 +01:00
Pedro M. Baeza
698926f535 [IMP+FIX] account_analytic_analysis_recurring: Translations + access rules + README 2017-11-18 19:39:22 +01:00
Stefan Rijnhart
0e5c9d40f6 [RFR] PEP8 2017-11-18 19:34:27 +01:00
Stefan Rijnhart
9a0d1e8c7e [ADD] Pot file and Dutch translation 2017-11-18 19:34:27 +01:00
unknown
b11daa200d [ADD] account_analytic_analysis_recurring 2017-11-18 19:34:19 +01:00
OCA Git Bot
c60287e3c3 [ADD] setup.py 2017-10-07 16:47:21 +02:00