diff --git a/doc/es/index.rst b/doc/es/index.rst index 95c0c77..c3dd288 100755 --- a/doc/es/index.rst +++ b/doc/es/index.rst @@ -4,3 +4,5 @@ Producto en un click Dispone de un asistente que permite crear un nuevo producto (con los campos básicos) de forma rapidamente. + +* Usar cuentas de la categoría. Por defecto se usará el producto la cuenta de la categoría. diff --git a/doc/index.rst b/doc/index.rst index aeef40a..f4c50aa 100755 --- a/doc/index.rst +++ b/doc/index.rst @@ -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. + +* Use Category's accounts. Default product use account defined in category. diff --git a/product_oneclick.py b/product_oneclick.py index a5043ea..6960051 100644 --- a/product_oneclick.py +++ b/product_oneclick.py @@ -127,6 +127,7 @@ class ProductOneClick(Wizard): 'cost_price': vals.cost_price or 0, 'cost_price_method': vals.cost_price_method, 'default_uom': vals.default_uom, + 'account_category': True, } if vals.salable: values.update({