Error saving purchase order if purchase_tax_include is installed (function field with 'store' overwriten)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Borja López Soilán (NeoPolus) |
Bug Description
On 5.0 and 6.0, if the purchase_
The problem seems to be that the 'amount_tax' field (a function field with store={...}) is being redefined by purchase_
Current 5.0 amount_tax field is defined like this:
store={
}, multi="sums"),
Current 6.0 amount_tax field is defined like this:
store={
}, multi="sums"),
And purchase_
As you can see, the last definition is not compatible with the previous ones (does not have 'store').
It seems that the bug is present since 2008-12-05 (on revno 2047 of the 5.0 addons the 'store' options where added to the amount_tax field).
I'll fix this bug for this module, but my question for the Framework Experts is:
- Shouldn't the framework be able to handle this case (a function field with 'store' being overwritten by a function field without 'store')?
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 731 lines (+515/-107)7 files modifiedpurchase_tax_include/__init__.py (+15/-11)
purchase_tax_include/__terp__.py (+10/-11)
purchase_tax_include/i18n/es_ES.po (+89/-0)
purchase_tax_include/i18n/fr_BE.po (+52/-0)
purchase_tax_include/i18n/purchase_tax_include.pot (+89/-0)
purchase_tax_include/purchase_tax_incl.py (+220/-57)
purchase_tax_include/purchase_tax_incl.xml (+40/-28)
- Joël Grand-Guillaume @ camptocamp: Approve
- OpenERP Core Team: Pending requested
-
Diff: 652 lines (+424/-114)7 files modifiedpurchase_tax_include/__init__.py (+7/-1)
purchase_tax_include/__openerp__.py (+36/-0)
purchase_tax_include/__terp__.py (+0/-35)
purchase_tax_include/i18n/es.po (+89/-0)
purchase_tax_include/i18n/purchase_tax_include.pot (+40/-3)
purchase_tax_include/purchase_tax_incl.py (+212/-47)
purchase_tax_include/purchase_tax_incl.xml (+40/-28)
summary: |
Error saving purchase order if purchase_tax_include is installed + (function field with 'store' overwriten) |
Changed in openobject-addons: | |
assignee: | nobody → Borja López Soilán (Pexego) (borjals) |
The framework should inform this.... +1 for the Idea...
Here we have two issues:
1.- What you are saying (technical issue).
2.- How something than _important_ like the tax in a document can be bad
implemented in a module on Extra-Addons....
If you can refer to the workshops http:// piratepad. net/communityda ys-merges
We took this point in exrta-addons this kind of problem should be avoided by
us, we didn't try this module yet, but for example, the purchase_discount
module overwrite all the functions about cost calculation with several
accounting issues, This is a similar problem in my point of view....
How technically do you think we can avoid this kind of errors on
addons-extra?
2010/7/8 Launchpad Bug Tracker <email address hidden>
> You have been subscribed to a public bug by Borja López Soilán (Pexego) tax_include module (from extra-addons) tax_include as a function( _amount_ all, method=True, digits=(16, 'price_ accuracy' ])), string='Taxes', order.line' : (_get_order, None, 10), function( _amount_ all, method=True, precision( 'Purchase Price'), string='Taxes', order.line' : (_get_order, None, 10), tax_include amount_tax_field is defined like this: function( _amount_ tax, method=True, tax_include is installed (function /bugs.launchpad .net/bugs/ 603100
> (borjals):
>
> On 5.0 and 6.0, if the purchase_
> is installed, saving a purchase order will throw an exception: "column
> "amount_tax" of relation "purchase_order" does not exist"
>
> The problem seems to be that the 'amount_tax' field (a function field
> with store={...}) is being redefined by purchase_
> function field without 'store'.
>
> Current 5.0 amount_tax field is defined like this:
>
> 'amount_tax': fields.
> int(config[
> store={
> 'purchase.
> }, multi="sums"),
>
> Current 6.0 amount_tax field is defined like this:
>
> 'amount_tax': fields.
> digits_compute= dp.get_
> store={
> 'purchase.
> }, multi="sums"),
>
> And purchase_
>
> 'amount_tax': fields.
> string='Taxes'),
>
> As you can see, the last definition is not compatible with the previous
> ones (does not have 'store').
> It seems that the bug is present since 2008-12-05 (on revno 2047 of the 5.0
> addons the 'store' options where added to the amount_tax field).
>
>
> I'll fix this bug for this module, but my question for the Framework
> Experts is:
>
> - Shouldn't the framework be able to handle this case (a function field
> with 'store' being overwritten by a function field without 'store')?
>
> ** Affects: openobject-addons
> Importance: Undecided
> Status: New
>
> --
> Error saving purchase order if purchase_
> field with 'store' overwriten)
> https:/
> You received this bug notification because you are subscribed to
> OpenObject.
>
--
Saludos Cordiales
Nhomar G. Hernandez M. geronimo. com.ve openerp. netquatro. com
+58-414-4110269
+58-212-6615932
+58-212-9536734 ext 124
+58-212-9512643
Skype: nhomar00
Web-Blog: http://
Servicios IT: http://
Linux-Counter: 467724
Correos:
<email address hidden>
<email address hidden>