Skip to content

Commit

Permalink
[FIX] point_of_sale: select general type journal in view
Browse files Browse the repository at this point in the history
The changes brought with
odoo@6420b6d
changed the default PoS journal's type for `general` instead of `sale`,
but no changes were made to the type's domain in the pos setting's view,
preventing the user to choose that journal again once it has been changed.

opw-2677130

closes odoo#80505

X-original-commit: 1d99c87
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
  • Loading branch information
proose committed Nov 29, 2021
1 parent 1863ebc commit 6018b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/point_of_sale/views/pos_config_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@
<div class="content-group">
<div class="row mt16" title="Whenever you close a session, one entry is generated in the following accounting journal for all the orders not invoiced. Invoices are recorded in accounting separately.">
<label string="Sales Journal" for="journal_id" class="col-lg-3 o_light_label" options="{'no_open': True, 'no_create': True}"/>
<field name="journal_id" required="1" domain="[('company_id', '=', company_id), ('type', '=', 'sale')]" context="{'default_company_id': company_id, 'default_type': 'sale'}"/>
<field name="journal_id" required="1" domain="[('company_id', '=', company_id), ('type', 'in', ('general', 'sale'))]" context="{'default_company_id': company_id, 'default_type': 'general'}"/>
</div>
</div>
</div>
Expand Down

0 comments on commit 6018b33

Please sign in to comment.