mirror of
https://bitbucket.org/presik/trytonpsk-sale_pos.git
synced 2023-12-14 07:13:02 +01:00
change presale field in view for sale
This commit is contained in:
parent
9e1fdda2bb
commit
680af54260
19
shop.py
19
shop.py
|
@ -4,6 +4,7 @@ from decimal import Decimal
|
|||
from datetime import time, datetime, timedelta
|
||||
|
||||
from trytond.model import fields, ModelView
|
||||
from trytond.pyson import Eval
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.wizard import Wizard, StateView, Button, StateReport
|
||||
|
@ -27,22 +28,28 @@ class SaleShop(metaclass=PoolMeta):
|
|||
help='The goods are picked up by the customer before the sale, so no '
|
||||
'shipment is created.')
|
||||
pos_authorization = fields.Many2One('account.invoice.authorization', 'Pos Authorization', domain=[
|
||||
('kind', '=', 'P')
|
||||
('kind', '=', 'P'),
|
||||
('company', '=', Eval('company')),
|
||||
])
|
||||
computer_authorization = fields.Many2One('account.invoice.authorization', 'Computer Authorization', domain=[
|
||||
('kind', '=', 'C')
|
||||
('kind', '=', 'C'),
|
||||
('company', '=', Eval('company')),
|
||||
])
|
||||
electronic_authorization = fields.Many2One('account.invoice.authorization', 'Electronic Authorization', domain=[
|
||||
('kind', 'in', ['1', '2', '3'])
|
||||
('kind', 'in', ['1', '2', '3']),
|
||||
('company', '=', Eval('company')),
|
||||
])
|
||||
credit_note_electronic_authorization = fields.Many2One('account.invoice.authorization', 'Credit Note Electronic Authorization', domain=[
|
||||
('kind', '=', '91')
|
||||
('kind', '=', '91'),
|
||||
('company', '=', Eval('company')),
|
||||
])
|
||||
debit_note_electronic_authorization = fields.Many2One('account.invoice.authorization', 'Debit Note Electronic Authorization', domain=[
|
||||
('kind', '=', '92')
|
||||
('kind', '=', '92'),
|
||||
('company', '=', Eval('company')),
|
||||
])
|
||||
manual_authorization = fields.Many2One('account.invoice.authorization', 'Manual Authorization', domain=[
|
||||
('kind', '=', 'M')
|
||||
('kind', '=', 'M'),
|
||||
('company', '=', Eval('company')),
|
||||
])
|
||||
freight_product = fields.Many2One('product.product', 'Freight Product')
|
||||
|
||||
|
|
|
@ -16,12 +16,6 @@ copyright notices and license terms. -->
|
|||
<button name="wizard_generate_invoice" string="Generate Invoice"
|
||||
icon="tryton-forward"/>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="/form/field[@name='reference']"
|
||||
position="after">
|
||||
<label name="pre_sale"/>
|
||||
<field name="pre_sale"/>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id='other']"
|
||||
position="after">
|
||||
|
@ -63,5 +57,7 @@ copyright notices and license terms. -->
|
|||
<field name="shipment_date"/>
|
||||
<label name="self_pick_up"/>
|
||||
<field name="self_pick_up"/>
|
||||
<label name="pre_sale"/>
|
||||
<field name="pre_sale"/>
|
||||
</xpath>
|
||||
</data>
|
||||
|
|
Loading…
Reference in a new issue