[IMP] point_of_sale: Add a 'self_checkout' flag on the journal

bzr revid: stw@openerp.com-20120604162326-ggwjedp5ht8b5wtf
This commit is contained in:
Stephane Wirtel 2012-06-04 18:23:26 +02:00
parent ed1ceca6f9
commit fea9d6eae3
3 changed files with 5 additions and 2 deletions

View File

@ -31,10 +31,12 @@ class account_journal(osv.osv):
'closing_control': fields.boolean('Closing Control', help="If you want the journal should be control at closing, check this option"),
'amount_authorized_diff' : fields.float('Amount Authorized Difference'),
'self_checkout_payment_method' : fields.boolean('Self Checkout Payment Method'),
}
_defaults = {
'opening_control' : True,
'closing_control' : True,
'self_checkout_payment_method' : False,
}
account_journal()

View File

@ -14,6 +14,7 @@
<field name="opening_control"/>
<field name="closing_control"/>
<field name="amount_authorized_diff"/>
<field name="self_checkout_payment_method" />
</group>
</page>
</xpath>

View File

@ -756,12 +756,12 @@
<button string="Set to Inactive" name="set_inactive" type="object" states="active" />
<button string="Set to Deprecated" name="set_deprecate" type="object" states="active,inactive" />
<div class="oe_right">
<field name="state" widget="statusbar" statusbar_visible="active,inactive,deprecated" statusbar_colors='{"deprecated" : "red"}' nolabel="1"/>
<field name="state" widget="statusbar" statusbar_visible="active,inactive,deprecated" statusbar_colors='{"deprecated" : "red"}' nolabel="1"/>
</div>
</div>
<sheet layout="auto">
<field name="name" placeholder="POS/0001"/>
<field name="name"/>
<field name="shop_id" widget="selection" />
<field name="journal_id" widget="selection" />
<field name="sequence_id" readonly="1"/>