Fix tests.
This commit is contained in:
parent
63452dfdbf
commit
d44022b3e1
|
@ -114,6 +114,13 @@ Create payment term::
|
||||||
>>> payment_term = create_payment_term()
|
>>> payment_term = create_payment_term()
|
||||||
>>> payment_term.save()
|
>>> payment_term.save()
|
||||||
|
|
||||||
|
Change sale configuration::
|
||||||
|
|
||||||
|
>>> Configuration = Model.get('sale.configuration')
|
||||||
|
>>> configuration = Configuration(1)
|
||||||
|
>>> configuration.sale_margin_method = 'cost_price'
|
||||||
|
>>> configuration.save()
|
||||||
|
|
||||||
Sale with 1 product::
|
Sale with 1 product::
|
||||||
|
|
||||||
>>> config.user = sale_user.id
|
>>> config.user = sale_user.id
|
||||||
|
|
|
@ -114,13 +114,6 @@ Create payment term::
|
||||||
>>> payment_term = create_payment_term()
|
>>> payment_term = create_payment_term()
|
||||||
>>> payment_term.save()
|
>>> payment_term.save()
|
||||||
|
|
||||||
Change sale configuration::
|
|
||||||
|
|
||||||
>>> Configuration = Model.get('sale.configuration')
|
|
||||||
>>> configuration = Configuration(1)
|
|
||||||
>>> configuration.sale_margin_method = 'unit_price'
|
|
||||||
>>> configuration.save()
|
|
||||||
|
|
||||||
Sale margin with and percentatge with unit price method::
|
Sale margin with and percentatge with unit price method::
|
||||||
|
|
||||||
>>> config.user = sale_user.id
|
>>> config.user = sale_user.id
|
||||||
|
|
Loading…
Reference in New Issue