Merge lp:~vauxoo/addons-vauxoo/currency_rounding_constrain_dev_luis into lp:addons-vauxoo
Proposed by
Luis Torres - http://www.vauxoo.com
Status: | Needs review |
---|---|
Proposed branch: | lp:~vauxoo/addons-vauxoo/currency_rounding_constrain_dev_luis |
Merge into: | lp:addons-vauxoo |
Diff against target: |
179 lines (+153/-0) 5 files modified
currency_rounding_constrain/__init__.py (+26/-0) currency_rounding_constrain/__openerp__.py (+44/-0) currency_rounding_constrain/i18n/es.po (+32/-0) currency_rounding_constrain/res_currency.py (+35/-0) currency_rounding_constrain/res_currency_view.xml (+16/-0) |
To merge this branch: | bzr merge lp:~vauxoo/addons-vauxoo/currency_rounding_constrain_dev_luis |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Moisés López - http://www.vauxoo.com | Needs Fixing | ||
Review via email: mp+118433@code.launchpad.net |
Description of the change
Se agrego un sql_constraint para que no se pueda colocar un rounding menor a 0, o nulo
To post a comment you must log in.
Unmerged revisions
- 387. By Luis Torres - http://www.vauxoo.com
-
[IMP]Change field rounding to required=True
- 386. By Luis Torres - http://www.vauxoo.com
-
[IMP]Change constraint to sql_constraint
- 385. By Luis Torres - http://www.vauxoo.com
-
[ADD][currency_
rounding_ constrain] Add constrain to rounding factor
Luis,
La palabra contrain va con "t" al final (contraint)
De una vez, como vas a cambiar el nombre del módulo, renombra todo a:
currency_ rounding_ nonzero
Hacer el replace en todos lados, incluso en el PO
Utilizar "bzr rename"
Pon el rounding a:
CHECK (rounding<>0)
Es decir, asignar un operador "diferente" <> tal vez sea !=
You can not assigned Rounding Factor = 0! Please set Rounding Factor!