openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #10266
[Bug 856291] Re: problem after installing modul 'sale_layout'
IMHO, lp:~openerp-dev/openobject-addons/trunk-bug-856291-psi is not the
solution.
In sale module, amounts fields of sale order are store and update on
change of field "order_line".
Sale_layout module use " abstract_line_ids" instead of "order_line".
It's why, I have change sale_layout.py in sale_layout module to add an updating on amounts fields on change of "abstract_line_ids" field.
In sale_layout.py :
- add method :
def _amount_all_l(self, cr, uid, ids, field_name, arg, context=None):
return self.pool.get('sale.order')._amount_all(cr,uid,ids,field_name,arg,context)
def _get_order_l(self, cr, uid, ids, context=None):
return self.pool.get('sale.order')._get_order(cr,uid,ids,context)
- change amounts fields in columns :
_columns = {
.
.
.
'amount_untaxed': fields.function(_amount_all_l, digits_compute= dp.get_precision('Sale Price'), string='Untaxed Amount',
store = {
'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line','abstract_line_ids'], 10),
'sale.order.line': (_get_order_l, ['price_unit', 'tax_id', 'discount', 'product_uom_qty'], 10),
},
multi='sums', help="The amount without tax."),
...
}
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/856291
Title:
problem after installing modul 'sale_layout'
Status in OpenERP Addons (modules):
Confirmed
Bug description:
problem with modul 'sale_layout'
client(trunk) rev. 1955
server(trunk) rev. 3640
addons(trunk) rev. 5119
after deleting a sale order line - total amounts are not calculated.
insert a new sale order line it works.
without modul sale_layout - it works.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/856291/+subscriptions