From 61422edcf9da53ca855f7bce1c94e310fb6b0b2d Mon Sep 17 00:00:00 2001 From: resteve Date: Wed, 28 Aug 2013 18:49:23 +0200 Subject: [PATCH] Use category accounts. Default True --- doc/es/index.rst | 2 ++ doc/index.rst | 2 ++ product_oneclick.py | 1 + 3 files changed, 5 insertions(+) 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({