[REF] account: account_tour_upload_bill view use grid

Simplify the arch of the account_tour_upload_bill view.
Use the CSS grid from bootstrap instead of the mulitple cols and colspans.
Steps to reproduce: `-i account_accountant,l10n_fr --without-demo all`
Then, in the accounting dashboard, click on "Upload Vendor Bills".

closes odoo/odoo#105562

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
This commit is contained in:
Julien Van Roy
2022-11-10 22:21:51 +01:00
parent c723637432
commit 7fdea9ab40
@@ -9,17 +9,11 @@
<sheet>
<h2>With Odoo, you won't have to record bills manually</h2>
<p>We process bills automatically so that you only have to validate them. Choose how you want to test our artificial intelligence engine:</p>
<group col="6">
<group colspan="2">
<field name="selection" widget="radio" nolabel="1" colspan="2"/>
</group>
<group colspan="4" attrs="{'invisible': [('selection', '!=', 'sample')]}">
<field name="preview_invoice" widget="html" nolabel="1" colspan="2"/>
</group>
<group colspan="4" attrs="{'invisible': [('selection', '!=', 'upload')]}">
<field name="attachment_ids" widget="many2many_binary" string="Attach a file" nolabel="1" colspan="2"/>
</group>
</group>
<div class="grid">
<field name="selection" widget="radio" class="g-col-4"/>
<field name="preview_invoice" widget="html" attrs="{'invisible': [('selection', '!=', 'sample')]}" class="g-col-8"/>
<field name="attachment_ids" widget="many2many_binary" string="Attach a file" attrs="{'invisible': [('selection', '!=', 'upload')]}" class="g-col-8"/>
</div>
</sheet>
<footer>
<button string="Continue" type="object" name="apply" class="btn-primary" data-hotkey="q"/>