Use category accounts. Default True

This commit is contained in:
resteve 2013-08-28 18:49:23 +02:00
parent f7107af34f
commit 61422edcf9
3 changed files with 5 additions and 0 deletions

View file

@ -4,3 +4,5 @@ Producto en un click
Dispone de un asistente que permite crear un nuevo producto (con los campos básicos) Dispone de un asistente que permite crear un nuevo producto (con los campos básicos)
de forma rapidamente. de forma rapidamente.
* Usar cuentas de la categoría. Por defecto se usará el producto la cuenta de la categoría.

View file

@ -2,3 +2,5 @@ Product OneClick Module
####################### #######################
This module adds a wizard to allow the creation of new product (with basic fields) in just One click. This module adds a wizard to allow the creation of new product (with basic fields) in just One click.
* Use Category's accounts. Default product use account defined in category.

View file

@ -127,6 +127,7 @@ class ProductOneClick(Wizard):
'cost_price': vals.cost_price or 0, 'cost_price': vals.cost_price or 0,
'cost_price_method': vals.cost_price_method, 'cost_price_method': vals.cost_price_method,
'default_uom': vals.default_uom, 'default_uom': vals.default_uom,
'account_category': True,
} }
if vals.salable: if vals.salable:
values.update({ values.update({