mirror of
https://github.com/NaN-tic/trytond-product_oneclick.git
synced 2023-12-14 06:42:53 +01:00
Use category accounts. Default True
This commit is contained in:
parent
f7107af34f
commit
61422edcf9
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue